This commit is contained in:
parent
927a17a31e
commit
f93b1b284e
1 changed files with 4 additions and 4 deletions
|
@ -93,14 +93,14 @@ void CNpcSeesawPlatform::processMovement( int _frames )
|
||||||
|
|
||||||
s32 newAngle = m_currentAngle + m_angularVelocity;
|
s32 newAngle = m_currentAngle + m_angularVelocity;
|
||||||
|
|
||||||
if ( newAngle > ( 512 << 8 ) )
|
if ( newAngle > ( 340 << 8 ) )
|
||||||
{
|
{
|
||||||
newAngle = 512 << 8;
|
newAngle = 340 << 8;
|
||||||
m_angularVelocity = 0;
|
m_angularVelocity = 0;
|
||||||
}
|
}
|
||||||
else if ( newAngle < -( 512 << 8 ) )
|
else if ( newAngle < -( 340 << 8 ) )
|
||||||
{
|
{
|
||||||
newAngle = -( 512 << 8 );
|
newAngle = -( 340 << 8 );
|
||||||
m_angularVelocity = 0;
|
m_angularVelocity = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue