mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-24 08:12:53 +01:00
Replace 2 occurences of regs.eax
This commit is contained in:
@@ -8591,22 +8591,18 @@ loc_6DBA33:;
|
||||
|
||||
if (trackType == TrackElemType::Brakes)
|
||||
{
|
||||
regs.eax = -(brake_speed << 16);
|
||||
if (regs.eax > _vehicleVelocityF64E08)
|
||||
if (-(brake_speed << 16) > _vehicleVelocityF64E08)
|
||||
{
|
||||
regs.eax = _vehicleVelocityF64E08 * -16;
|
||||
acceleration = regs.eax;
|
||||
acceleration = _vehicleVelocityF64E08 * -16;
|
||||
}
|
||||
}
|
||||
|
||||
if (TrackTypeIsBooster(curRide->type, trackType))
|
||||
{
|
||||
regs.eax = get_booster_speed(curRide->type, (brake_speed << 16));
|
||||
|
||||
if (regs.eax < _vehicleVelocityF64E08)
|
||||
auto boosterSpeed = get_booster_speed(curRide->type, (brake_speed << 16));
|
||||
if (boosterSpeed < _vehicleVelocityF64E08)
|
||||
{
|
||||
regs.eax = RideTypeDescriptors[curRide->type].OperatingSettings.BoosterAcceleration << 16;
|
||||
acceleration = regs.eax;
|
||||
acceleration = RideTypeDescriptors[curRide->type].OperatingSettings.BoosterAcceleration << 16;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user