Remove occurrence of regs.ebx

This commit is contained in:
Gymnasiast 2021-01-17 20:04:18 +01:00
parent 6561f1cb49
commit 9fb46e7fcc
No known key found for this signature in database
GPG Key ID: DBFFF47AB2CA3EDD
1 changed files with 3 additions and 1 deletions

View File

@ -8627,6 +8627,7 @@ loc_6DBA33:;
// loc_6DBD42 // loc_6DBD42
track_progress = regs.ax; track_progress = regs.ax;
uint8_t moveInfoVehicleSpriteType;
{ {
const rct_vehicle_info* moveInfo = GetMoveInfo(); const rct_vehicle_info* moveInfo = GetMoveInfo();
auto loc = TrackLocation auto loc = TrackLocation
@ -8652,6 +8653,7 @@ loc_6DBA33:;
bank_rotation = moveInfo->bank_rotation; bank_rotation = moveInfo->bank_rotation;
regs.ebx = moveInfo->vehicle_sprite_type; regs.ebx = moveInfo->vehicle_sprite_type;
vehicle_sprite_type = regs.bl; vehicle_sprite_type = regs.bl;
moveInfoVehicleSpriteType = moveInfo->vehicle_sprite_type;
if ((vehicleEntry->flags & VEHICLE_ENTRY_FLAG_25) && regs.bl != 0) if ((vehicleEntry->flags & VEHICLE_ENTRY_FLAG_25) && regs.bl != 0)
{ {
@ -8678,7 +8680,7 @@ loc_6DBA33:;
{ {
return true; return true;
} }
regs.ebx = dword_9A2970[regs.ebx]; regs.ebx = dword_9A2970[moveInfoVehicleSpriteType];
acceleration += regs.ebx; acceleration += regs.ebx;
_vehicleUnkF64E10++; _vehicleUnkF64E10++;
goto loc_6DBA33; goto loc_6DBA33;