src/vehicle_gui.cpp
changeset 7846 98f7b9595aab
parent 7832 60035eb28f08
child 7928 63e18de69e50
equal deleted inserted replaced
7845:4e5c90c389ca 7846:98f7b9595aab
  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;