Simplify.

This commit is contained in:
Glenn Maynard
2003-09-04 07:37:09 +00:00
parent e8873ac90a
commit d7cf9cfcfc
+9 -35
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)
{ {
@@ -548,49 +548,23 @@ void LifeMeterBar::UpdateNonstopLifebar(const int cleared,
// about 20% of your lifebar); at 0.2 it would be 40%, which // about 20% of your lifebar); at 0.2 it would be 40%, which
// is too harsh at one difficulty level higher. Override. // is too harsh at one difficulty level higher. Override.
if (m_fLifeDifficulty >= 0.2) // judge 8 if (m_fLifeDifficulty >= 0.2) // judge 8
{
m_fLifeDifficulty = 0.3f; m_fLifeDifficulty = 0.3f;
return; else if (m_fLifeDifficulty >= 0) // judge 9
}
if (m_fLifeDifficulty >= 0) // judge 9
{
m_fLifeDifficulty = 0.25f; m_fLifeDifficulty = 0.25f;
return; else if (m_fLifeDifficulty >= -0.2) // judge 10
}
if (m_fLifeDifficulty >= -0.2) // judge 10
{
m_fLifeDifficulty = 0.2f; m_fLifeDifficulty = 0.2f;
return; else if (m_fLifeDifficulty >= -0.4) // judge 11
}
if (m_fLifeDifficulty >= -0.4) // judge 11
{
m_fLifeDifficulty = 0.16f; m_fLifeDifficulty = 0.16f;
return; else if (m_fLifeDifficulty >= -0.6) // judge 12
}
if (m_fLifeDifficulty >= -0.6) // judge 12
{
m_fLifeDifficulty = 0.14f; m_fLifeDifficulty = 0.14f;
return; else if (m_fLifeDifficulty >= -0.8) // judge 13
}
if (m_fLifeDifficulty >= -0.8) // judge 13
{
m_fLifeDifficulty = 0.12f; m_fLifeDifficulty = 0.12f;
return; else if (m_fLifeDifficulty >= -1.0) // judge 14
}
if (m_fLifeDifficulty >= -1.0) // judge 14
{
m_fLifeDifficulty = 0.10f; m_fLifeDifficulty = 0.10f;
return; else if (m_fLifeDifficulty >= -1.2) // judge 15
}
if (m_fLifeDifficulty >= -1.2) // judge 15
{
m_fLifeDifficulty = 0.08f; m_fLifeDifficulty = 0.08f;
return; else // judge 16 or higher
}
// judge 16 or higher
m_fLifeDifficulty = 0.04f; m_fLifeDifficulty = 0.04f;
return;
} }