Simplify.
This commit is contained in:
@@ -513,10 +513,9 @@ void LifeMeterBar::UpdateNonstopLifebar(const int cleared,
|
|||||||
return;
|
return;
|
||||||
} */
|
} */
|
||||||
|
|
||||||
|
m_fLifeDifficulty = m_fBaseLifeDifficulty - 0.2f * ProgressiveLifebarDifficulty;
|
||||||
if (total > 1)
|
if (total > 1)
|
||||||
m_fLifeDifficulty = m_fBaseLifeDifficulty - 0.2f * ProgressiveLifebarDifficulty * cleared / (total - 1);
|
m_fLifeDifficulty *= cleared / (total - 1);
|
||||||
else
|
|
||||||
m_fLifeDifficulty = m_fBaseLifeDifficulty - 0.2f * ProgressiveLifebarDifficulty;
|
|
||||||
|
|
||||||
if (m_fLifeDifficulty >= 0.4) return;
|
if (m_fLifeDifficulty >= 0.4) return;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user