changeset 8862 | f72f256c0259 |
parent 8853 | 3266f0374302 |
child 8864 | 76e142d103e9 |
8861:706760e1205a | 8862:f72f256c0259 |
---|---|
701 } |
701 } |
702 |
702 |
703 |
703 |
704 static void CheckIfAircraftNeedsService(Vehicle *v) |
704 static void CheckIfAircraftNeedsService(Vehicle *v) |
705 { |
705 { |
706 if (_patches.servint_aircraft == 0 || !VehicleNeedsService(v)) return; |
706 if (_patches.servint_aircraft == 0 || !v->NeedsAutomaticServicing()) return; |
707 if (v->IsInDepot()) { |
707 if (v->IsInDepot()) { |
708 VehicleServiceInDepot(v); |
708 VehicleServiceInDepot(v); |
709 return; |
709 return; |
710 } |
710 } |
711 |
711 |