This commit is contained in:
Charles 2001-07-24 20:11:23 +00:00
parent 7f60e855d5
commit d21a42d53d
5 changed files with 37 additions and 0 deletions

View file

@ -126,9 +126,21 @@ void CNpcLiftPlatform::processMovement( int _frames )
if ( extension )
{
m_extension += extension;
if(m_soundId==NOT_PLAYING)
{
m_soundId=CSoundMediator::playSfx(CSoundMediator::SFX_ELEVATOR_LOOP,true,true);
}
}
else
{
if ( m_soundId != NOT_PLAYING )
{
CSoundMediator::stopAndUnlockSfx( (xmPlayingId) m_soundId );
}
m_soundId=CSoundMediator::playSfx(CSoundMediator::SFX_ELEVATOR_STOP,true,true);
if ( m_returning )
{
m_isActivated = false;