Correctly mark unhandled constants as such

This commit is contained in:
Jan 2022-05-15 15:55:37 +02:00
parent 0105c0d1bd
commit 6862faa992

View File

@ -1223,8 +1223,10 @@ namespace IW4
} }
else if (constant.nameHash == Common::R_HashString("envMapParms")) else if (constant.nameHash == Common::R_HashString("envMapParms"))
{ {
// TODO: Wrong, fix // TODO: Calculate actual values
m_constants_info.m_env_map_min = constant.literal[0]; m_constants_info.m_env_map_min = 0;
m_constants_info.m_env_map_max = 0;
m_constants_info.m_env_map_exponent = 0;
} }
else if (constant.nameHash == Common::R_HashString("featherParms")) else if (constant.nameHash == Common::R_HashString("featherParms"))
{ {
@ -1278,7 +1280,11 @@ namespace IW4
} }
else if (constant.nameHash == Common::R_HashString("falloffParms")) else if (constant.nameHash == Common::R_HashString("falloffParms"))
{ {
__asm nop; // TODO: Calculate actual values
m_constants_info.m_falloff_begin_angle = 0.0f;
m_constants_info.m_falloff_end_angle = 0.0f;
m_constants_info.m_dist_falloff_begin_distance = 0.0f;
m_constants_info.m_dist_falloff_end_distance = 0.0f;
} }
else if (constant.nameHash == Common::R_HashString("distortionScale")) else if (constant.nameHash == Common::R_HashString("distortionScale"))
{ {