Mercurial > hg > openttd
diff src/train_cmd.cpp @ 10690:f76eeab175e5 draft
(svn r15009) -Fix [FS#2528]: No need to extent the reserved path when the vehicle is still loading.
author | frosch <frosch@openttd.org> |
---|---|
date | Mon, 12 Jan 2009 14:56:31 +0000 |
parents | 4742228a9d1d |
children | 7edccbb67398 |
line wrap: on
line diff
--- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -2362,7 +2362,7 @@ /* 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);