equal
deleted
inserted
replaced
142 return best_depot; |
142 return best_depot; |
143 } |
143 } |
144 |
144 |
145 static void CheckIfShipNeedsService(Vehicle *v) |
145 static void CheckIfShipNeedsService(Vehicle *v) |
146 { |
146 { |
147 if (_patches.servint_ships == 0 || !VehicleNeedsService(v)) return; |
147 if (_patches.servint_ships == 0 || !v->NeedsAutomaticServicing()) return; |
148 if (v->IsInDepot()) { |
148 if (v->IsInDepot()) { |
149 VehicleServiceInDepot(v); |
149 VehicleServiceInDepot(v); |
150 return; |
150 return; |
151 } |
151 } |
152 |
152 |