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
@@ -29,6 +29,7 @@ static void SuperMeterPercentChangeInit( size_t /*ScoreEvent*/ i, RString &sName
case SE_CheckpointMiss: defaultValueOut = -0.20f; break;
case SE_Held: defaultValueOut = +0.04f; break;
case SE_LetGo: defaultValueOut = -0.20f; break;
case SE_Missed: defaultValueOut = -0.00f; break;
DEFAULT_FAIL(ci);
}
}
@@ -95,6 +96,7 @@ void ScoreKeeperRave::HandleHoldScore( const TapNote &tn )
{
case HNS_Held: fPercentToMove = g_fSuperMeterPercentChange[SE_Held]; break;
case HNS_LetGo: fPercentToMove = g_fSuperMeterPercentChange[SE_LetGo]; break;
case HNS_Missed: fPercentToMove = g_fSuperMeterPercentChange[SE_Missed]; break;
default: break;
}
AddSuperMeterDelta( fPercentToMove );