(svn r12688) -Change: make default non-stop for depot/waypoint orders the same as for stations.
authorrubidium
Sun, 13 Apr 2008 16:50:55 +0000
changeset 10157 c6c508d9e164
parent 10156 e4b8e6f2f033
child 10158 e4e8e74d96c7
(svn r12688) -Change: make default non-stop for depot/waypoint orders the same as for stations.
src/order_gui.cpp
--- a/src/order_gui.cpp	Sun Apr 13 16:48:28 2008 +0000
+++ b/src/order_gui.cpp	Sun Apr 13 16:50:55 2008 +0000
@@ -422,6 +422,7 @@
 				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 @@
 			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;
 	}