mirror of https://github.com/OpenTTD/OpenTTD
(svn r12688) -Change: make default non-stop for depot/waypoint orders the same as for stations.
parent
af3723e217
commit
145ea54474
|
@ -422,6 +422,7 @@ static Order GetOrderCmdFromTile(const Vehicle *v, TileIndex tile)
|
||||||
if (v->type == VEH_TRAIN && IsTileOwner(tile, _local_player)) {
|
if (v->type == VEH_TRAIN && IsTileOwner(tile, _local_player)) {
|
||||||
if (IsRailDepot(tile)) {
|
if (IsRailDepot(tile)) {
|
||||||
order.MakeGoToDepot(GetDepotByTile(tile)->index, ODTFB_PART_OF_ORDERS);
|
order.MakeGoToDepot(GetDepotByTile(tile)->index, ODTFB_PART_OF_ORDERS);
|
||||||
|
if (_patches.new_nonstop) order.SetNonStopType(ONSF_NO_STOP_AT_INTERMEDIATE_STATIONS);
|
||||||
return order;
|
return order;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -463,6 +464,7 @@ static Order GetOrderCmdFromTile(const Vehicle *v, TileIndex tile)
|
||||||
IsTileOwner(tile, _local_player) &&
|
IsTileOwner(tile, _local_player) &&
|
||||||
IsRailWaypoint(tile)) {
|
IsRailWaypoint(tile)) {
|
||||||
order.MakeGoToWaypoint(GetWaypointByTile(tile)->index);
|
order.MakeGoToWaypoint(GetWaypointByTile(tile)->index);
|
||||||
|
if (_patches.new_nonstop) order.SetNonStopType(ONSF_NO_STOP_AT_INTERMEDIATE_STATIONS);
|
||||||
return order;
|
return order;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue