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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user