Rewrite confusing if statement

This commit is contained in:
Michael Steenbeek committed 2017-09-14 13:48:14 +02:00
1 parent 8c33240c38
commit 98e15f1cd9
1 file changed
+1 -1
+1 -1
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;
}