Only play attacks if upcoming, not past.
This commit is contained in:
+3
-1
@@ -4289,7 +4289,9 @@ void ScreenEdit::SetupCourseAttacks()
|
||||
{
|
||||
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 );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user