(svn r18128) -Codechange: rename GetVehicleListHeight to GetVehicleHeight as it has nothing to do with the height of the vehicle lists.

This commit is contained in:
rubidium
2009-11-16 20:58:38 +00:00
parent 0d5cc869f3
commit b7ef6b3ca8
3 changed files with 11 additions and 7 deletions

View File

@@ -86,8 +86,12 @@ void ShowVehicleListWindow(CompanyID company, VehicleType vehicle_type);
void ShowVehicleListWindow(CompanyID company, VehicleType vehicle_type, StationID station);
void ShowVehicleListWindow(CompanyID company, VehicleType vehicle_type, TileIndex depot_tile);
static inline uint GetVehicleListHeight(VehicleType type)
/**
* Get the height of a single vehicle in the GUIs.
* @param type the vehicle type to look at
* @return the height
*/
static inline uint GetVehicleHeight(VehicleType type)
{
return (type == VEH_TRAIN || type == VEH_ROAD) ? 14 : 24;
}