1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

Replace occurrence of regs.ax

This commit is contained in:
Gymnasiast
2021-01-17 19:49:01 +01:00
parent d9fb4616a6
commit d817d595eb

View File

@@ -8606,12 +8606,12 @@ loc_6DBA33:;
}
}
regs.ax = track_progress - 1;
if (regs.ax == -1)
uint16_t newTrackProgress = track_progress - 1;
if (newTrackProgress == 0xFFFF)
{
UpdateCrossings();
if (!UpdateTrackMotionBackwardsGetNewTrack(trackType, curRide, reinterpret_cast<uint16_t*>(&regs.ax)))
if (!UpdateTrackMotionBackwardsGetNewTrack(trackType, curRide, &newTrackProgress))
{
_vehicleMotionTrackFlags |= VEHICLE_UPDATE_MOTION_TRACK_FLAG_5;
_vehicleVelocityF64E0C -= remaining_distance - 0x368A;
@@ -8621,7 +8621,7 @@ loc_6DBA33:;
}
// loc_6DBD42
track_progress = regs.ax;
track_progress = newTrackProgress;
uint8_t moveInfoVehicleSpriteType;
{
const rct_vehicle_info* moveInfo = GetMoveInfo();