(svn r21933) -Codechange: Split cur_order_index into cur_auto_order_index and cur_real_order_index to keep track of the current real order in an unambiguous way.
-Fix [FS#4440]: Automatic orders behave now stable wrt. service orders and are not added or removed depending on the need of servicing. -Fix: Various other issues with automatic orders, e.g. vehicles getting stuck with "no orders" when there are automatic orders at the end of the order list.
This commit is contained in:
@@ -525,7 +525,7 @@ TileIndex RoadVehicle::GetOrderStationLocation(StationID station)
|
||||
const Station *st = Station::Get(station);
|
||||
if (!CanVehicleUseStation(this, st)) {
|
||||
/* There is no stop left at the station, so don't even TRY to go there */
|
||||
this->IncrementOrderIndex();
|
||||
this->IncrementRealOrderIndex();
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user