HNS_Missed

Added an HNS type to handle holds which are never initialized due to
missed taps. This fixes a long standing issue with
iCurPossibleDancePoints and allows themes to decide how to handled this
case.
This commit is contained in:
sigatrev
2014-03-16 11:36:40 -05:00
parent 411026191d
commit 343511f4c3
10 changed files with 36 additions and 7 deletions
+2
View File
@@ -32,6 +32,7 @@ static const float g_fTimeMeterSecondsChangeInit[] =
-0.0f, // SE_CheckpointMiss
-0.0f, // SE_Held
-4.0f, // SE_LetGo
-0.0f, // SE_Missed
};
COMPILE_ASSERT( ARRAYLEN(g_fTimeMeterSecondsChangeInit) == NUM_ScoreEvent );
@@ -143,6 +144,7 @@ void LifeMeterTime::ChangeLife( HoldNoteScore hns, TapNoteScore tns )
FAIL_M(ssprintf("Invalid HoldNoteScore: %i", hns));
case HNS_Held: fMeterChange = g_fTimeMeterSecondsChange[SE_Held]; break;
case HNS_LetGo: fMeterChange = g_fTimeMeterSecondsChange[SE_LetGo]; break;
case HNS_Missed: fMeterChange = g_fTimeMeterSecondsChange[SE_Missed]; break;
}
float fOldLife = m_fLifeTotalLostSeconds;