Mercurial > hg > openttd
diff src/order_gui.cpp @ 10099:3bb7e18e8b0a draft
(svn r14280) -Codechange: use IsRailWaypointTile() instead of IsTileType() and IsRailWaypoint() checks at several places
author | smatz <smatz@openttd.org> |
---|---|
date | Tue, 09 Sep 2008 12:26:25 +0000 (2008-09-09) |
parents | 5885cda280e8 |
children | dbe302da93a8 |
line wrap: on
line diff
--- a/src/order_gui.cpp +++ b/src/order_gui.cpp @@ -318,10 +318,9 @@ } /* 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;