From 7f60e855d51fd10fccf94dce54964e3857041f3f Mon Sep 17 00:00:00 2001 From: Charles Date: Tue, 24 Jul 2001 19:52:44 +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 f282af131..713ff0888 100644 --- a/source/platform/psbarrel.cpp +++ b/source/platform/psbarrel.cpp @@ -134,6 +134,14 @@ void CNpcSteerableBarrelPlatform::processMovement( int _frames ) moveX = m_currentSpeed; + if ( m_currentSpeed ) + { + if(m_soundId==NOT_PLAYING) + { + m_soundId=CSoundMediator::playSfx(CSoundMediator::SFX_ROLLING_BARREL,true); + } + } + // check for collision if ( CGameScene::getCollision()->getHeightFromGround( Pos.vx + moveX, Pos.vy ) < -maxHeight )