This commit is contained in:
parent
0dbe0c5cf2
commit
60762b9727
@ -154,14 +154,14 @@ void CNpcBranchPlatform::processMovement( int _frames )
|
|||||||
|
|
||||||
if ( m_reversed )
|
if ( m_reversed )
|
||||||
{
|
{
|
||||||
if ( m_angularVelocity > 10 && newAngle < -32 )
|
if ( m_angularVelocity > 8 && newAngle < -20 )
|
||||||
{
|
{
|
||||||
player->springPlayerUp();
|
player->springPlayerUp();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if ( m_angularVelocity < -10 && newAngle > 32 )
|
if ( m_angularVelocity < -8 && newAngle > 20 )
|
||||||
{
|
{
|
||||||
player->springPlayerUp();
|
player->springPlayerUp();
|
||||||
}
|
}
|
||||||
@ -188,7 +188,7 @@ void CNpcBranchPlatform::processMovement( int _frames )
|
|||||||
m_angularVelocity += angularForce;
|
m_angularVelocity += angularForce;
|
||||||
}
|
}
|
||||||
|
|
||||||
s32 resistance = -( 5 * _frames * newAngle ) >> 8;
|
s32 resistance = -( 10 * _frames * newAngle ) >> 8;
|
||||||
|
|
||||||
if ( newAngle > 0 && resistance > -2 )
|
if ( newAngle > 0 && resistance > -2 )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user