This commit is contained in:
parent
661d211142
commit
553023b9df
1 changed files with 8 additions and 0 deletions
|
@ -76,6 +76,14 @@ void CNpcSteerableBarrelPlatform::processMovement( int _frames )
|
||||||
m_soundId=CSoundMediator::playSfx(CSoundMediator::SFX_ROLLING_BARREL,true);
|
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 += ( m_currentSpeed * 30 * _frames ) >> 2;
|
||||||
m_rotation &= 4095;
|
m_rotation &= 4095;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue