working on AttackDisplay

This commit is contained in:
Chris Danford
2003-11-27 02:30:54 +00:00
parent d5a859f877
commit 8ca12364bd
7 changed files with 40 additions and 14 deletions
+4 -2
View File
@@ -171,7 +171,7 @@ void GameState::Update( float fDelta )
}
/* See if any attacks are ending. */
m_bActiveAttackEndedThisUpdate[p] = false;
m_bAttackEndedThisUpdate[p] = false;
for( s=0; s<MAX_SIMULTANEOUS_ATTACKS; s++ )
{
@@ -189,7 +189,7 @@ void GameState::Update( float fDelta )
/* ending */
m_ActiveAttacks[p][s].fSecsRemaining = 0;
m_ActiveAttacks[p][s].sModifier = "";
m_bActiveAttackEndedThisUpdate[p] = true;
m_bAttackEndedThisUpdate[p] = true;
RebuildPlayerOptions = true;
}
@@ -691,6 +691,8 @@ void GameState::LaunchAttack( PlayerNumber target, Attack a )
{
LOG->Trace( "Launch attack '%s' against P%d at %f", a.sModifier.c_str(), target+1, a.fStartSecond );
m_bAttackBeganThisUpdate[target] = true;
// search for an open slot
for( int s=0; s<MAX_SIMULTANEOUS_ATTACKS; s++ )
{