(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:
@@ -1640,6 +1640,11 @@ static void CheckIfRoadVehNeedsService(Vehicle *v)
|
||||
// If we already got a slot at a stop, use that FIRST, and go to a depot later
|
||||
if (v->u.road.slot != NULL) return;
|
||||
|
||||
if (IsRoadVehInDepot(v)) {
|
||||
VehicleServiceInDepot(v);
|
||||
return;
|
||||
}
|
||||
|
||||
// XXX If we already have a depot order, WHY do we search over and over?
|
||||
depot = FindClosestRoadDepot(v);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user