This commit is contained in:
Charles 2001-07-11 19:03:57 +00:00
parent 34e9720e26
commit 89cd986bf2
2 changed files with 12 additions and 6 deletions

View File

@ -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;
}

View File

@ -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