diff options
author | peter1138 <peter1138@openttd.org> | 2007-03-18 22:07:44 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2007-03-18 22:07:44 +0000 |
commit | 497e5fe565a7092b21e4c8c5ca3ab6cdcf07c822 (patch) | |
tree | 0b37f73c50958d5bf1aafa42df0730491c179b20 /src/order_gui.cpp | |
parent | d947f5cec9fee3f1388cc986e7f32afa1e118b18 (diff) | |
download | openttd-497e5fe565a7092b21e4c8c5ca3ab6cdcf07c822.tar.xz |
(svn r9301) -Codechange: Use cargo class to determine if a road vehicle can stop in bus or truck stops.
Diffstat (limited to 'src/order_gui.cpp')
-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 167c754f0..f13996c5f 100644 --- a/src/order_gui.cpp +++ b/src/order_gui.cpp @@ -297,7 +297,7 @@ static Order GetOrderCmdFromTile(const Vehicle *v, TileIndex tile) (facil=FACIL_DOCK, v->type == VEH_SHIP) || (facil=FACIL_TRAIN, v->type == VEH_TRAIN) || (facil=FACIL_AIRPORT, v->type == VEH_AIRCRAFT) || - (facil=FACIL_BUS_STOP, v->type == VEH_ROAD && v->cargo_type == CT_PASSENGERS) || + (facil=FACIL_BUS_STOP, v->type == VEH_ROAD && IsCargoInClass(v->cargo_type, CC_PASSENGERS)) || (facil=FACIL_TRUCK_STOP, 1); if (st->facilities & facil) { order.type = OT_GOTO_STATION; |