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
+9 -1
View File
@@ -50,7 +50,11 @@ void HoldJudgment::SetHoldJudgment( HoldNoteScore hns )
{
//LOG->Trace( "Judgment::SetJudgment()" );
ResetAnimation();
// Matt: To save API. Command can handle if desired.
if( hns != HNS_Missed )
{
ResetAnimation();
}
switch( hns )
{
@@ -62,6 +66,10 @@ void HoldJudgment::SetHoldJudgment( HoldNoteScore hns )
m_sprJudgment->SetState( 1 );
m_sprJudgment->PlayCommand( "LetGo" );
break;
case HNS_Missed:
//m_sprJudgment->SetState( 2 ); // Matt: Not until after 5.0
m_sprJudgment->PlayCommand( "MissedHold" );
break;
case HNS_None:
default:
FAIL_M(ssprintf("Cannot set hold judgment to %i", hns));