summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-04-13 16:50:55 +0000
committerrubidium <rubidium@openttd.org>2008-04-13 16:50:55 +0000
commit79f4d763edcda79f13e95cf9f86b9e2782003194 (patch)
treebd9e874e92b1e3355a2e8cd0146d725e60ff5bbd /src
parent22353393cdf6e68c605766dc7a63388f5c378804 (diff)
downloadopenttd-79f4d763edcda79f13e95cf9f86b9e2782003194.tar.xz
(svn r12688) -Change: make default non-stop for depot/waypoint orders the same as for stations.
Diffstat (limited to 'src')
-rw-r--r--src/order_gui.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/order_gui.cpp b/src/order_gui.cpp
index 7740eabc8..02d3e5fcb 100644
--- a/src/order_gui.cpp
+++ b/src/order_gui.cpp
@@ -422,6 +422,7 @@ static Order GetOrderCmdFromTile(const Vehicle *v, TileIndex tile)
if (v->type == VEH_TRAIN && IsTileOwner(tile, _local_player)) {
if (IsRailDepot(tile)) {
order.MakeGoToDepot(GetDepotByTile(tile)->index, ODTFB_PART_OF_ORDERS);
+ if (_patches.new_nonstop) order.SetNonStopType(ONSF_NO_STOP_AT_INTERMEDIATE_STATIONS);
return order;
}
}
@@ -463,6 +464,7 @@ static Order GetOrderCmdFromTile(const Vehicle *v, TileIndex tile)
IsTileOwner(tile, _local_player) &&
IsRailWaypoint(tile)) {
order.MakeGoToWaypoint(GetWaypointByTile(tile)->index);
+ if (_patches.new_nonstop) order.SetNonStopType(ONSF_NO_STOP_AT_INTERMEDIATE_STATIONS);
return order;
}