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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user