diff options
author | smatz <smatz@openttd.org> | 2008-09-09 12:26:25 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-09-09 12:26:25 +0000 |
commit | f503c7c99e5322ea68336d9fa48c208722df9668 (patch) | |
tree | 6bd21c91c8943ef78a3129350c28c9e50daccb89 /src/order_gui.cpp | |
parent | a527d237aa3af230dd95447916822985ae1c1e11 (diff) | |
download | openttd-f503c7c99e5322ea68336d9fa48c208722df9668.tar.xz |
(svn r14280) -Codechange: use IsRailWaypointTile() instead of IsTileType() and IsRailWaypoint() checks at several places
Diffstat (limited to 'src/order_gui.cpp')
-rw-r--r-- | src/order_gui.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/order_gui.cpp b/src/order_gui.cpp index 9b840ffbf..32c4abd51 100644 --- a/src/order_gui.cpp +++ b/src/order_gui.cpp @@ -318,10 +318,9 @@ static Order GetOrderCmdFromTile(const Vehicle *v, TileIndex tile) } /* check waypoint */ - if (IsTileType(tile, MP_RAILWAY) && + if (IsRailWaypointTile(tile) && v->type == VEH_TRAIN && - IsTileOwner(tile, _local_player) && - IsRailWaypoint(tile)) { + IsTileOwner(tile, _local_player)) { order.MakeGoToWaypoint(GetWaypointByTile(tile)->index); if (_settings_client.gui.new_nonstop) order.SetNonStopType(ONSF_NO_STOP_AT_INTERMEDIATE_STATIONS); return order; |