fix m_bAttackEndedThisUpdate being true when an attack begins

fix course global mods tweening
This commit is contained in:
Glenn Maynard
2004-02-07 06:11:36 +00:00
parent 36ffb71851
commit d2ee4ddb01
2 changed files with 6 additions and 3 deletions
+3 -2
View File
@@ -281,13 +281,14 @@ void GameState::Update( float fDelta )
{
Attack &attack = m_ActiveAttacks[p][s];
const bool bCurrentlyEnabled =
attack.fStartSecond == -1 ||
(attack.fStartSecond < this->m_fMusicSeconds &&
m_fMusicSeconds < attack.fStartSecond+attack.fSecsRemaining);
m_fMusicSeconds < attack.fStartSecond+attack.fSecsRemaining);
if( m_ActiveAttacks[p][s].bOn == bCurrentlyEnabled )
continue; /* OK */
if( !m_ActiveAttacks[p][s].bOn && bCurrentlyEnabled )
if( m_ActiveAttacks[p][s].bOn && !bCurrentlyEnabled )
m_bAttackEndedThisUpdate[p] = true;
bRebuildPlayerOptions = true;