From 342ee2ad8cccc65d2bd8b50757afc1b32333440f Mon Sep 17 00:00:00 2001 From: kianzzarrin Date: Sun, 6 Nov 2022 18:36:45 +0200 Subject: [PATCH] --- TLM/TLM/Patch/_VehicleAI/UpdatePathTargetPositionsPatch.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/TLM/TLM/Patch/_VehicleAI/UpdatePathTargetPositionsPatch.cs b/TLM/TLM/Patch/_VehicleAI/UpdatePathTargetPositionsPatch.cs index 29b0ad919..05f3992d2 100644 --- a/TLM/TLM/Patch/_VehicleAI/UpdatePathTargetPositionsPatch.cs +++ b/TLM/TLM/Patch/_VehicleAI/UpdatePathTargetPositionsPatch.cs @@ -991,7 +991,7 @@ public static bool Prefix(VehicleAI __instance, nextLaneId, nextNextPosition, bezier, - out stopOffset) && stopOffset >= previousPathOffset; + ref stopOffset) && stopOffset >= previousPathOffset; if (logLogic) { Log._Debug($"CustomVehicle.CustomUpdatePathTargetPositions({vehicleID}): " + $"needStopAtNode={needStopAtNode} stopOffset={stopOffset} previousPathOffset={previousPathOffset}"); @@ -1209,7 +1209,8 @@ public static bool CustomNeedStopAtNode( uint nextLaneID, PathUnit.Position nextNextPosition, Bezier3 trajectory, - out byte stopOffset) { + ref byte stopOffset) { + return false; #if DEBUG bool logLogic = DebugSwitch.CalculateSegmentPosition.Get() && (GlobalConfig.Instance.Debug.ApiExtVehicleType == API.Traffic.Enums.ExtVehicleType.None @@ -1253,7 +1254,6 @@ ref nodeId.ToNode(), RenderOverlayPatch.Actions.Remove(1); RenderOverlayPatch.Actions.Remove(2); } - stopOffset = 255; return false; } }