From e4e4ca11223c699372ec5a412b5f22b9899aec04 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Sun, 17 Jan 2021 19:51:55 +0100 Subject: [PATCH] Replace occurrence of regs.ax --- src/openrct2/ride/Vehicle.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/openrct2/ride/Vehicle.cpp b/src/openrct2/ride/Vehicle.cpp index d4b8e5f7da..7f1f6b4a85 100644 --- a/src/openrct2/ride/Vehicle.cpp +++ b/src/openrct2/ride/Vehicle.cpp @@ -8270,11 +8270,11 @@ loc_6DAEB9: } } - regs.ax = track_progress + 1; + uint16_t newTrackProgress = track_progress + 1; // Track Total Progress is in the two bytes before the move info list uint16_t trackTotalProgress = GetTrackProgress(); - if (regs.ax >= trackTotalProgress) + if (newTrackProgress >= trackTotalProgress) { UpdateCrossings(); @@ -8285,10 +8285,10 @@ loc_6DAEB9: remaining_distance = -1; return false; } - regs.ax = 0; + newTrackProgress = 0; } - track_progress = regs.ax; + track_progress = newTrackProgress; UpdateHandleWaterSplash(); // loc_6DB706