This commit is contained in:
Charles 2001-07-16 15:56:34 +00:00
parent 720754bcf8
commit a019bcdebf

View File

@ -39,6 +39,16 @@ void CSteamEmitterTrigger::think(int _frames)
{
m_soundId = (int) CSoundMediator::playSfx( CSoundMediator::SFX_HAZARD__STEAM, true );
}
else
{
if( !CSoundMediator::isSfxStillPlaying( (xmPlayingId) m_soundId ) )
{
// unlock sound if it has finished
CSoundMediator::stopAndUnlockSfx( (xmPlayingId) m_soundId );
m_soundId = NOT_PLAYING;
}
}
CTrigger::think( _frames );
}