equal
deleted
inserted
replaced
1413 |
1413 |
1414 WP(w, vehicledetails_d).tab = 0; |
1414 WP(w, vehicledetails_d).tab = 0; |
1415 } |
1415 } |
1416 |
1416 |
1417 /** Checks whether service interval is enabled for the vehicle. */ |
1417 /** Checks whether service interval is enabled for the vehicle. */ |
1418 static bool inline IsVehicleServiceIntervalEnabled(const VehicleType vehicle_type) |
1418 static inline bool IsVehicleServiceIntervalEnabled(const VehicleType vehicle_type) |
1419 { |
1419 { |
1420 switch (vehicle_type) { |
1420 switch (vehicle_type) { |
1421 default: NOT_REACHED(); |
1421 default: NOT_REACHED(); |
1422 case VEH_TRAIN: return _patches.servint_trains != 0; break; |
1422 case VEH_TRAIN: return _patches.servint_trains != 0; break; |
1423 case VEH_ROAD: return _patches.servint_roadveh != 0; break; |
1423 case VEH_ROAD: return _patches.servint_roadveh != 0; break; |