From d25c2539e0a9984ebd1dee13927d1b8b31378f19 Mon Sep 17 00:00:00 2001 From: sardelka9515 Date: Mon, 22 Aug 2022 19:27:25 +0800 Subject: [PATCH] Tweaks --- RageCoop.Client/Properties/AssemblyInfo.cs | 4 ++-- .../Sync/Entities/Vehicle/SyncedVehicle.cs | 19 ++----------------- 2 files changed, 4 insertions(+), 19 deletions(-) diff --git a/RageCoop.Client/Properties/AssemblyInfo.cs b/RageCoop.Client/Properties/AssemblyInfo.cs index 16f12d9..2cf9c27 100644 --- a/RageCoop.Client/Properties/AssemblyInfo.cs +++ b/RageCoop.Client/Properties/AssemblyInfo.cs @@ -16,7 +16,7 @@ using System.Resources; // Version informationr( -[assembly: AssemblyVersion("1.5.2.103")] -[assembly: AssemblyFileVersion("1.5.2.103")] +[assembly: AssemblyVersion("1.5.2.104")] +[assembly: AssemblyFileVersion("1.5.2.104")] [assembly: NeutralResourcesLanguageAttribute( "en-US" )] diff --git a/RageCoop.Client/Sync/Entities/Vehicle/SyncedVehicle.cs b/RageCoop.Client/Sync/Entities/Vehicle/SyncedVehicle.cs index 267d062..31269a1 100644 --- a/RageCoop.Client/Sync/Entities/Vehicle/SyncedVehicle.cs +++ b/RageCoop.Client/Sync/Entities/Vehicle/SyncedVehicle.cs @@ -273,13 +273,11 @@ namespace RageCoop.Client MainVehicle.Quaternion = Quaternion; return; } - else if (dist <= 0.03) + else if (dist > 0.03) { - return; + MainVehicle.Velocity = Velocity + cali; } - - MainVehicle.Velocity = Velocity+cali; Vector3 calirot; if (IsFlipped || (calirot = GetCalibrationRotation()).Length()>50) { @@ -291,19 +289,6 @@ namespace RageCoop.Client { MainVehicle.RotationVelocity = RotationVelocity + calirot * 0.2f; } - -#if DEBUG_VEH - if (_orgTrace.Count >= 30) - { - _orgTrace.RemoveAt(0); - } - if (_predictedTrace.Count >= 30) - { - _predictedTrace.RemoveAt(0); - } - _orgTrace.Add(Position); - _predictedTrace.Add(_predictedPos); -#endif } private Vector3 GetCalibrationRotation() {