Don't follow position if velocity is greater than 3
This commit is contained in:
@ -124,11 +124,17 @@ namespace RageCoop.Client
|
||||
return;
|
||||
}
|
||||
}
|
||||
DisplayVehicle();
|
||||
// Skip update if no new sync message has arrived.
|
||||
if (!NeedUpdate) { return; }
|
||||
if (!NeedUpdate) {
|
||||
if (Velocity.Length()<3)
|
||||
{
|
||||
DisplayVehicle();
|
||||
}
|
||||
return;
|
||||
}
|
||||
#endregion
|
||||
#region -- SYNC CRITICAL --
|
||||
DisplayVehicle();
|
||||
if (SteeringAngle != MainVehicle.SteeringAngle)
|
||||
{
|
||||
MainVehicle.CustomSteeringAngle((float)(Math.PI / 180) * SteeringAngle);
|
||||
|
Reference in New Issue
Block a user