This commit is contained in:
parent
34e9720e26
commit
89cd986bf2
2 changed files with 12 additions and 6 deletions
|
@ -143,15 +143,17 @@ void CNpcConveyorPlatform::processMovement( int _frames )
|
|||
{
|
||||
if ( distX )
|
||||
{
|
||||
int Time = GameState::getFramesSinceLast();
|
||||
|
||||
moveX = distX;
|
||||
|
||||
if ( moveX > 4 )
|
||||
if ( moveX > Time )
|
||||
{
|
||||
moveX = 4;
|
||||
moveX = Time;
|
||||
}
|
||||
else if ( moveX < -4 )
|
||||
else if ( moveX < -Time )
|
||||
{
|
||||
moveX = -4;
|
||||
moveX = -Time;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue