src/vehicle_gui.cpp
changeset 8853 3266f0374302
parent 8843 45fdf630deaa
child 8917 06ae1b37ac6d
equal deleted inserted replaced
8852:c5e9e67b130a 8853:3266f0374302
  1967 				} else {
  1967 				} else {
  1968 					Depot *depot = GetDepot(v->current_order.GetDestination());
  1968 					Depot *depot = GetDepot(v->current_order.GetDestination());
  1969 					SetDParam(0, depot->town_index);
  1969 					SetDParam(0, depot->town_index);
  1970 					SetDParam(1, v->GetDisplaySpeed());
  1970 					SetDParam(1, v->GetDisplaySpeed());
  1971 				}
  1971 				}
  1972 				if (HasBit(v->current_order.GetDepotActionType(), OF_HALT_IN_DEPOT) && !HasBit(v->current_order.GetDepotOrderType(), OF_PART_OF_ORDERS)) {
  1972 				if ((v->current_order.GetDepotActionType() & ODATFB_HALT) && !(v->current_order.GetDepotOrderType() & ODTFB_PART_OF_ORDERS)) {
  1973 					str = _heading_for_depot_strings[v->type] + _patches.vehicle_speed;
  1973 					str = _heading_for_depot_strings[v->type] + _patches.vehicle_speed;
  1974 				} else {
  1974 				} else {
  1975 					str = _heading_for_depot_service_strings[v->type] + _patches.vehicle_speed;
  1975 					str = _heading_for_depot_service_strings[v->type] + _patches.vehicle_speed;
  1976 				}
  1976 				}
  1977 			} break;
  1977 			} break;