ProgressiveLifebarDifficulty, cleared and (total - 1) are all ints, so

ProgressiveLifebarDifficulty * cleared / (total - 1)) is an int.  Simplify.
This commit is contained in:
Glenn Maynard
2003-09-04 07:33:27 +00:00
parent 74b06a7e27
commit 869dbe66bd
+1 -1
View File
@@ -514,7 +514,7 @@ void LifeMeterBar::UpdateNonstopLifebar(const int cleared,
} */
if (total > 1)
m_fLifeDifficulty = m_fBaseLifeDifficulty - 0.2f * (int)(ProgressiveLifebarDifficulty * cleared / (total - 1));
m_fLifeDifficulty = m_fBaseLifeDifficulty - 0.2f * ProgressiveLifebarDifficulty * cleared / (total - 1);
else
m_fLifeDifficulty = m_fBaseLifeDifficulty - 0.2f * ProgressiveLifebarDifficulty;