-
-
Save SamuXarick/f58c829f072c28733ea0b35a6a96a384 to your computer and use it in GitHub Desktop.
RemoveOrderFromAllVehicles - Simplify these checks into 1 line
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (owner == OWNER_NONE && type == OT_GOTO_WAYPOINT && vtype != VEH_SHIP) continue; | |
if (owner == OWNER_NONE && type == OT_GOTO_STATION && vtype != VEH_SHIP && vtype != VEH_AIRCRAFT) continue; | |
if (owner == c->index && type == OT_GOTO_WAYPOINT && vtype != VEH_TRAIN) continue; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment