This commit is contained in:
parent
983fd7f27e
commit
297cce9964
@ -176,6 +176,17 @@ void CNpcBranchPlatform::processMovement( int _frames )
|
||||
|
||||
m_angularVelocity += angularForce;
|
||||
}
|
||||
else if ( ( getRnd() % 50 ) == 0 )
|
||||
{
|
||||
s16 angularForce = 6 * _frames;
|
||||
|
||||
if ( m_reversed )
|
||||
{
|
||||
angularForce = -angularForce;
|
||||
}
|
||||
|
||||
m_angularVelocity += angularForce;
|
||||
}
|
||||
|
||||
s32 resistance = -( 5 * _frames * newAngle ) >> 8;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user