This commit is contained in:
parent
720754bcf8
commit
a019bcdebf
1 changed files with 10 additions and 0 deletions
|
@ -39,6 +39,16 @@ void CSteamEmitterTrigger::think(int _frames)
|
||||||
{
|
{
|
||||||
m_soundId = (int) CSoundMediator::playSfx( CSoundMediator::SFX_HAZARD__STEAM, true );
|
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 );
|
CTrigger::think( _frames );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue