This commit is contained in:
Charles 2001-08-03 13:24:56 +00:00
parent 661d211142
commit 553023b9df

View File

@ -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;