Fix progressive nonstop lifebar not working in event mode. (Event mode

with courses just means you can play another course without going through
the menus again.)
This commit is contained in:
Glenn Maynard
2003-09-04 07:28:28 +00:00
parent 9219322406
commit 74b06a7e27
+5 -3
View File
@@ -486,7 +486,7 @@ void LifeMeterBar::DrawPrimitives()
ActorFrame::DrawPrimitives(); ActorFrame::DrawPrimitives();
} }
#include "RageLog.h"
void LifeMeterBar::UpdateNonstopLifebar(const int cleared, void LifeMeterBar::UpdateNonstopLifebar(const int cleared,
const int total, int ProgressiveLifebarDifficulty) const int total, int ProgressiveLifebarDifficulty)
{ {
@@ -505,11 +505,13 @@ void LifeMeterBar::UpdateNonstopLifebar(const int cleared,
// should be checked before calling function, but in case // should be checked before calling function, but in case
// it isn't, do so here // it isn't, do so here
if (PREFSMAN->m_bEventMode) /* No, wait: if we're playing nonstop, event mode just means that we can play another
* nonstop course later, so it shouldn't affect life difficulty. */
/* if (PREFSMAN->m_bEventMode)
{ {
m_fLifeDifficulty = m_fBaseLifeDifficulty; m_fLifeDifficulty = m_fBaseLifeDifficulty;
return; return;
} } */
if (total > 1) if (total > 1)
m_fLifeDifficulty = m_fBaseLifeDifficulty - 0.2f * (int)(ProgressiveLifebarDifficulty * cleared / (total - 1)); m_fLifeDifficulty = m_fBaseLifeDifficulty - 0.2f * (int)(ProgressiveLifebarDifficulty * cleared / (total - 1));