From 553023b9df3533ec2e52bf4275feb4a243c108db Mon Sep 17 00:00:00 2001 From: Charles Date: Fri, 3 Aug 2001 13:24:56 +0000 Subject: [PATCH] --- source/platform/psbarrel.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/platform/psbarrel.cpp b/source/platform/psbarrel.cpp index 1a59d5fa0..c941ca0d4 100644 --- a/source/platform/psbarrel.cpp +++ b/source/platform/psbarrel.cpp @@ -76,6 +76,14 @@ void CNpcSteerableBarrelPlatform::processMovement( int _frames ) m_soundId=CSoundMediator::playSfx(CSoundMediator::SFX_ROLLING_BARREL,true); } } + else + { + if( m_soundId != NOT_PLAYING ) + { + CSoundMediator::stopAndUnlockSfx( (xmPlayingId) m_soundId ); + m_soundId = NOT_PLAYING; + } + } m_rotation += ( m_currentSpeed * 30 * _frames ) >> 2; m_rotation &= 4095;