This commit is contained in:
parent
88bb372ec8
commit
d344b5e263
2 changed files with 2 additions and 11 deletions
|
@ -90,16 +90,9 @@ void CNpcBobbingPlatform::processMovement( int _frames )
|
||||||
moveY = 0;
|
moveY = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*if ( Pos.vy + moveY < m_initPos.vy )
|
if ( m_soundId == NOT_PLAYING )
|
||||||
{
|
{
|
||||||
Pos.vy = m_initPos.vy;
|
m_soundId = (int) CSoundMediator::playSfx( CSoundMediator::SFX_SINKING_CRATE, true, true );
|
||||||
m_velocity = 0;
|
|
||||||
m_state = NPC_BOB_STOP;
|
|
||||||
moveY = 0;
|
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
Pos.vy += moveY;
|
|
||||||
}*/
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -122,7 +122,6 @@ void CNpcBranchPlatform::processMovement( int _frames )
|
||||||
if ( m_angularVelocity > 6 && newAngle < -20 )
|
if ( m_angularVelocity > 6 && newAngle < -20 )
|
||||||
{
|
{
|
||||||
player->springPlayerUp();
|
player->springPlayerUp();
|
||||||
CSoundMediator::playSfx(CSoundMediator::SFX_SPONGEBOB_BUTTBOUNCE);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -130,7 +129,6 @@ void CNpcBranchPlatform::processMovement( int _frames )
|
||||||
if ( m_angularVelocity < -6 && newAngle > 20 )
|
if ( m_angularVelocity < -6 && newAngle > 20 )
|
||||||
{
|
{
|
||||||
player->springPlayerUp();
|
player->springPlayerUp();
|
||||||
CSoundMediator::playSfx(CSoundMediator::SFX_SPONGEBOB_BUTTBOUNCE);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue