1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-06 06:32:56 +01:00

Convert a register to a variable

This commit is contained in:
Manuel Vögele
2020-11-05 17:43:51 +01:00
committed by GitHub
parent 2f4b1b9e3f
commit 4a6db953f7

View File

@@ -8322,10 +8322,10 @@ loc_6DB967:
}
auto head = otherVeh->TrainHead();
regs.eax = abs(velocity - head->velocity);
auto velocityDelta = abs(velocity - head->velocity);
if (!(rideEntry->flags & RIDE_ENTRY_FLAG_DISABLE_COLLISION_CRASHES))
{
if (regs.eax > 0xE0000)
if (velocityDelta > 0xE0000)
{
if (!(vehicleEntry->flags & VEHICLE_ENTRY_FLAG_BOAT_HIRE_COLLISION_DETECTION))
{