summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2009-01-12 14:56:31 +0000
committerfrosch <frosch@openttd.org>2009-01-12 14:56:31 +0000
commit2d4c9cda7295d46988f340beafc816b2000720bc (patch)
tree9eb586f3ca8ea2583c27404b8f7b5ca0d21bc076
parente99335c085f0c50fd674924714f9499bdff5b08f (diff)
downloadopenttd-2d4c9cda7295d46988f340beafc816b2000720bc.tar.xz
(svn r15009) -Fix [FS#2528]: No need to extent the reserved path when the vehicle is still loading.
-rw-r--r--src/train_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
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);