mirror of https://github.com/OpenTTD/OpenTTD
(svn r13664) -Fix [FS#2117]: bus/truck forgetting go-to-depot order when entering a non-drivethrough road stop.
parent
4f5eae2789
commit
f06daceb16
|
@ -1754,19 +1754,13 @@ again:
|
|||
|
||||
v->last_station_visited = st->index;
|
||||
|
||||
if (IsDriveThroughStopTile(v->tile) || v->current_order.GetDestination() == st->index) {
|
||||
if (IsDriveThroughStopTile(v->tile) || (v->current_order.IsType(OT_GOTO_STATION) && v->current_order.GetDestination() == st->index)) {
|
||||
RoadVehArrivesAt(v, st);
|
||||
v->BeginLoading();
|
||||
} else {
|
||||
v->current_order.MakeLeaveStation();
|
||||
InvalidateVehicleOrder(v);
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
} else {
|
||||
/* Vehicle is ready to leave a bay in a road stop */
|
||||
if (!v->current_order.IsType(OT_GOTO_DEPOT)) {
|
||||
if (rs->IsEntranceBusy()) {
|
||||
/* Road stop entrance is busy, so wait as there is nowhere else to go */
|
||||
v->cur_speed = 0;
|
||||
|
|
Loading…
Reference in New Issue