This commit is contained in:
parent
7101daf48a
commit
7f60e855d5
@ -134,6 +134,14 @@ void CNpcSteerableBarrelPlatform::processMovement( int _frames )
|
|||||||
|
|
||||||
moveX = m_currentSpeed;
|
moveX = m_currentSpeed;
|
||||||
|
|
||||||
|
if ( m_currentSpeed )
|
||||||
|
{
|
||||||
|
if(m_soundId==NOT_PLAYING)
|
||||||
|
{
|
||||||
|
m_soundId=CSoundMediator::playSfx(CSoundMediator::SFX_ROLLING_BARREL,true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// check for collision
|
// check for collision
|
||||||
|
|
||||||
if ( CGameScene::getCollision()->getHeightFromGround( Pos.vx + moveX, Pos.vy ) < -maxHeight )
|
if ( CGameScene::getCollision()->getHeightFromGround( Pos.vx + moveX, Pos.vy ) < -maxHeight )
|
||||||
|
Loading…
Reference in New Issue
Block a user