assert on invalid attack ranges at load time so they don't slip to play time
This commit is contained in:
@@ -32,6 +32,7 @@ void Attack::GetAttackBeats( const Song *song, const PlayerState* pPlayerState,
|
||||
GAMESTATE->GetUndisplayedBeats( pPlayerState, fSecsRemaining, fStartBeat, fEndBeat );
|
||||
}
|
||||
|
||||
// loading the course should have caught this.
|
||||
ASSERT_M( fEndBeat >= fStartBeat, ssprintf("%f >= %f", fEndBeat, fStartBeat) );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user