diff options
author | PeterN <peter@fuzzle.org> | 2019-04-13 12:43:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-13 12:43:49 +0100 |
commit | b9b34f676b96e29ec91711bd7ff74d2492424655 (patch) | |
tree | 19186d6410b53376ed3c4b372abe76ec6d9706e5 | |
parent | 5bd2b15e863eaf54bfee4dfebb280d6884169354 (diff) | |
download | openttd-b9b34f676b96e29ec91711bd7ff74d2492424655.tar.xz |
Change: Always report error when ordering a road vehicle to wrong type of road stop. (#7316)
This was inconsistent before, depending on road/tram and articulated/single vehicle status.
-rw-r--r-- | src/order_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/order_gui.cpp b/src/order_gui.cpp index bd7ea39cc..7cf7a9ba9 100644 --- a/src/order_gui.cpp +++ b/src/order_gui.cpp @@ -399,7 +399,7 @@ static Order GetOrderCmdFromTile(const Vehicle *v, TileIndex tile) case VEH_SHIP: facil = FACIL_DOCK; break; case VEH_TRAIN: facil = FACIL_TRAIN; break; case VEH_AIRCRAFT: facil = FACIL_AIRPORT; break; - case VEH_ROAD: facil = RoadVehicle::From(v)->IsBus() ? FACIL_BUS_STOP : FACIL_TRUCK_STOP; break; + case VEH_ROAD: facil = FACIL_BUS_STOP | FACIL_TRUCK_STOP; break; default: NOT_REACHED(); } if (st->facilities & facil) { |