This commit is contained in:
parent
34e9720e26
commit
89cd986bf2
@ -161,7 +161,9 @@ void CNpcGaryFriend::think( int _frames )
|
||||
case COLLISION_TYPE_FLAG_MOVE_LEFT:
|
||||
{
|
||||
conveyorOverride = true;
|
||||
Pos.vx -= 4;
|
||||
int Time = GameState::getFramesSinceLast();
|
||||
|
||||
Pos.vx -= Time;
|
||||
|
||||
break;
|
||||
}
|
||||
@ -169,7 +171,9 @@ void CNpcGaryFriend::think( int _frames )
|
||||
case COLLISION_TYPE_FLAG_MOVE_RIGHT:
|
||||
{
|
||||
conveyorOverride = true;
|
||||
Pos.vx += 4;
|
||||
int Time = GameState::getFramesSinceLast();
|
||||
|
||||
Pos.vx += Time;
|
||||
|
||||
break;
|
||||
}
|
||||
|
@ -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…
Reference in New Issue
Block a user