diff options
author | frosch <frosch@openttd.org> | 2014-07-16 20:56:39 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2014-07-16 20:56:39 +0000 |
commit | 14c4b24405c4522b1092110d7b074d5bbe20994d (patch) | |
tree | 24590c47638d08c0f3aba1f3cf9b2cf10e844881 /src/order_gui.cpp | |
parent | 925fb7bd37a6a33f885807688487ee052efe2409 (diff) | |
download | openttd-14c4b24405c4522b1092110d7b074d5bbe20994d.tar.xz |
(svn r26692) -Fix [FS#6059]: Ordering a vehicle to a competitor's rail waypoint displayed an error message. Ignore the click as is done for the other order types to competitor's stuff. (Juanjo)
Diffstat (limited to 'src/order_gui.cpp')
-rw-r--r-- | src/order_gui.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/order_gui.cpp b/src/order_gui.cpp index e69f229f0..b5fd63731 100644 --- a/src/order_gui.cpp +++ b/src/order_gui.cpp @@ -410,7 +410,8 @@ static Order GetOrderCmdFromTile(const Vehicle *v, TileIndex tile) return order; } - if ((IsBuoyTile(tile) && v->type == VEH_SHIP) || (IsRailWaypointTile(tile) && v->type == VEH_TRAIN)) { + /* check buoy (no ownership) */ + if (IsBuoyTile(tile) && v->type == VEH_SHIP) { order.MakeGoToWaypoint(GetStationIndex(tile)); return order; } |