summaryrefslogtreecommitdiff
path: root/src/vehicle_gui.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-11-16 20:58:38 +0000
committerrubidium <rubidium@openttd.org>2009-11-16 20:58:38 +0000
commitef11ce84ee8fc81def8bcdef6e2307869f9637f1 (patch)
treedf8a5446047757f0958a0df69c244d963fa4c4ff /src/vehicle_gui.h
parent2e54ff1aa2ed01737a6b1a2a9c77f99f03e4d446 (diff)
downloadopenttd-ef11ce84ee8fc81def8bcdef6e2307869f9637f1.tar.xz
(svn r18128) -Codechange: rename GetVehicleListHeight to GetVehicleHeight as it has nothing to do with the height of the vehicle lists.
Diffstat (limited to 'src/vehicle_gui.h')
-rw-r--r--src/vehicle_gui.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/vehicle_gui.h b/src/vehicle_gui.h
index 649025ba3..57dc98783 100644
--- a/src/vehicle_gui.h
+++ b/src/vehicle_gui.h
@@ -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;
}