From 318b7986fd7023692377305151fe73a72c34e512 Mon Sep 17 00:00:00 2001 From: Charles Date: Thu, 12 Jul 2001 20:42:49 +0000 Subject: [PATCH] --- source/hazard/hdbarrel.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/hazard/hdbarrel.cpp b/source/hazard/hdbarrel.cpp index dd6f99227..5db0eca0b 100644 --- a/source/hazard/hdbarrel.cpp +++ b/source/hazard/hdbarrel.cpp @@ -131,6 +131,11 @@ void CNpcDualPlatformBarrelHazard::processMovement( int _frames ) if ( moveX ) { + if ( m_soundId == NOT_PLAYING ) + { + m_soundId = (int) CSoundMediator::playSfx( CSoundMediator::SFX_ROLLING_ROCK, true ); + } + m_rotationDir = abs( moveX ) / moveX; } else