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
@@ -26,6 +26,7 @@ static void TugMeterPercentChangeInit( size_t /*ScoreEvent*/ i, RString &sNameOu
case SE_CheckpointMiss: defaultValueOut = -0.002f; break;
case SE_Held: defaultValueOut = +0.008f; break;
case SE_LetGo: defaultValueOut = -0.020f; break;
case SE_Missed: defaultValueOut = +0.000f; break;
}
}
@@ -101,6 +102,7 @@ void CombinedLifeMeterTug::ChangeLife( PlayerNumber pn, HoldNoteScore score, Tap
{
case HNS_Held: fPercentToMove = g_fTugMeterPercentChange[SE_Held]; break;
case HNS_LetGo: fPercentToMove = g_fTugMeterPercentChange[SE_LetGo]; break;
case HNS_Missed: fPercentToMove = g_fTugMeterPercentChange[SE_Missed]; break;
default:
FAIL_M(ssprintf("Invalid HoldNoteScore: %i", score));
}