Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
kianzarrin committed Nov 6, 2022
1 parent 97e8064 commit 342ee2a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions TLM/TLM/Patch/_VehicleAI/UpdatePathTargetPositionsPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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}");
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -1253,7 +1254,6 @@ ref nodeId.ToNode(),
RenderOverlayPatch.Actions.Remove(1);
RenderOverlayPatch.Actions.Remove(2);
}
stopOffset = 255;
return false;
}
}
Expand Down

0 comments on commit 342ee2a

Please sign in to comment.