DIRTY FIX: someone thought progressive stages affected lifebar difficulty; do an additional check in function to make sure we're not in event mode

This commit is contained in:
Andrew Wong
2003-08-03 19:58:45 +00:00
parent 3b289d5c9d
commit 061bf51dc1
+8
View File
@@ -483,6 +483,14 @@ void LifeMeterBar::UpdateNonstopLifebar(const int cleared,
return;
}
// should be checked before calling function, but in case
// it isn't, do so here
if (PREFSMAN->m_bEventMode)
{
m_fLifeDifficulty = m_fBaseLifeDifficulty;
return;
}
if (total > 1)
m_fLifeDifficulty = m_fBaseLifeDifficulty - 0.2f * (int)(ProgressiveLifebarDifficulty * cleared / (total - 1));
else