mirror of https://github.com/OpenTTD/OpenTTD
(svn r15009) -Fix [FS#2528]: No need to extent the reserved path when the vehicle is still loading.
parent
e99335c085
commit
2d4c9cda72
|
@ -2362,7 +2362,7 @@ static void CheckNextTrainTile(Vehicle *v)
|
||||||
/* Exit if we are on a station tile and are going to stop. */
|
/* 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;
|
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. */
|
/* 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);
|
Trackdir td = GetVehicleTrackdir(v);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue