From f503c7c99e5322ea68336d9fa48c208722df9668 Mon Sep 17 00:00:00 2001 From: smatz Date: Tue, 9 Sep 2008 12:26:25 +0000 Subject: (svn r14280) -Codechange: use IsRailWaypointTile() instead of IsTileType() and IsRailWaypoint() checks at several places --- src/order_gui.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/order_gui.cpp') 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; -- cgit v1.2.3-54-g00ecf