From 69877b356f44682f7f0010e6c0d2b88f1592b82c Mon Sep 17 00:00:00 2001 From: frosch Date: Mon, 12 Jan 2009 14:56:31 +0000 Subject: (svn r15009) -Fix [FS#2528]: No need to extent the reserved path when the vehicle is still loading. --- src/train_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index e0ac2db42..bd7f71eb9 100644 --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -2362,7 +2362,7 @@ static void CheckNextTrainTile(Vehicle *v) /* Exit if we are on a station tile and are going to stop. */ if (IsRailwayStationTile(v->tile) && v->current_order.ShouldStopAtStation(v, GetStationIndex(v->tile))) return; /* Exit if the current order doesn't have a destination, but the train has orders. */ - if ((v->current_order.IsType(OT_NOTHING) || v->current_order.IsType(OT_LEAVESTATION)) && v->GetNumOrders() > 0) return; + if ((v->current_order.IsType(OT_NOTHING) || v->current_order.IsType(OT_LEAVESTATION) || v->current_order.IsType(OT_LOADING)) && v->GetNumOrders() > 0) return; Trackdir td = GetVehicleTrackdir(v); -- cgit v1.2.3-54-g00ecf