Replace occurrence of regs.ax

This commit is contained in:
Gymnasiast 2021-01-17 19:51:55 +01:00
parent 2baf0f992f
commit e4e4ca1122
No known key found for this signature in database
GPG Key ID: DBFFF47AB2CA3EDD
1 changed files with 4 additions and 4 deletions

View File

@ -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 // Track Total Progress is in the two bytes before the move info list
uint16_t trackTotalProgress = GetTrackProgress(); uint16_t trackTotalProgress = GetTrackProgress();
if (regs.ax >= trackTotalProgress) if (newTrackProgress >= trackTotalProgress)
{ {
UpdateCrossings(); UpdateCrossings();
@ -8285,10 +8285,10 @@ loc_6DAEB9:
remaining_distance = -1; remaining_distance = -1;
return false; return false;
} }
regs.ax = 0; newTrackProgress = 0;
} }
track_progress = regs.ax; track_progress = newTrackProgress;
UpdateHandleWaterSplash(); UpdateHandleWaterSplash();
// loc_6DB706 // loc_6DB706