(svn r6356) -Fix: FS#263 planes come out of hangar and drive back into hangar
Now all vehicles are serviced when it's time for service and they are in a depot This will avoid the goto depot order from ever showing up when in a depot
This commit is contained in:
@@ -667,6 +667,11 @@ static void CheckIfAircraftNeedsService(Vehicle *v)
|
||||
|
||||
if (_patches.gotodepot && VehicleHasDepotOrders(v)) return;
|
||||
|
||||
if (IsAircraftInHangar(v)) {
|
||||
VehicleServiceInDepot(v);
|
||||
return;
|
||||
}
|
||||
|
||||
st = GetStation(v->current_order.dest);
|
||||
// only goto depot if the target airport has terminals (eg. it is airport)
|
||||
if (IsValidStation(st) && st->airport_tile != 0 && GetAirport(st->airport_type)->terminals != NULL) {
|
||||
|
||||
Reference in New Issue
Block a user