1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-20 13:33:02 +01:00

Rewrite confusing if statement

This commit is contained in:
Michael Steenbeek
2017-09-14 13:48:14 +02:00
parent 8c33240c38
commit 98e15f1cd9

View File

@@ -154,7 +154,7 @@ void RideObject::Load()
newVar03 = 3;
}
}
else if ((vehicleEntry->flags & (VEHICLE_ENTRY_FLAG_21 | VEHICLE_ENTRY_FLAG_27)) != (VEHICLE_ENTRY_FLAG_21 | VEHICLE_ENTRY_FLAG_27))
else if (!(vehicleEntry->flags & VEHICLE_ENTRY_FLAG_21) || !(vehicleEntry->flags & VEHICLE_ENTRY_FLAG_27))
{
newVar03 = 7;
}