This commit is contained in:
Charles 2001-06-18 19:06:43 +00:00
parent bd6fd54608
commit 16c576b885
34 changed files with 288 additions and 49 deletions

View file

@ -106,7 +106,11 @@ void CNpcFireballHazard::processMovement( int _frames )
m_isActive = false;
m_timerActive = true;
m_timer = ( m_respawnRate - 1 ) * GameState::getOneSecondInFrames();
CSoundMediator::playSfx( CSoundMediator::SFX_HAZARD__FIREBALL_LAND );
if ( m_soundId == NOT_PLAYING )
{
m_soundId = CSoundMediator::playSfx( CSoundMediator::SFX_HAZARD__FIREBALL_LAND, true );
}
return;
}
@ -126,6 +130,9 @@ void CNpcFireballHazard::processTimer( int _frames )
m_timerActive = false;
m_isActive = true;
CSoundMediator::playSfx( CSoundMediator::SFX_HAZARD__FIREBALL_LAUNCH );
if ( m_soundId == NOT_PLAYING )
{
m_soundId = CSoundMediator::playSfx( CSoundMediator::SFX_HAZARD__FIREBALL_LAUNCH, true );
}
}
}