Only play attacks if upcoming, not past.

This commit is contained in:
Jason Felds
2011-06-24 18:07:36 -04:00
parent adf1fd7129
commit de4a6fcaf4
+3 -1
View File
@@ -4289,7 +4289,9 @@ void ScreenEdit::SetupCourseAttacks()
{ {
FOREACH(Attack, attacks, attack) FOREACH(Attack, attacks, attack)
{ {
GAMESTATE->m_pPlayerState[PLAYER_1]->LaunchAttack( *attack ); float fBeat = GetAppropriateTiming().GetBeatFromElapsedTime(attack->fStartSecond);
if (fBeat >= GetBeat())
GAMESTATE->m_pPlayerState[PLAYER_1]->LaunchAttack( *attack );
} }
} }
} }