Don't follow position if velocity is greater than 3

This commit is contained in:
Sardelka
2022-07-20 18:02:17 +08:00
parent 71ecdbd5b9
commit 2ba3e33d39

View File

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