diff options
author | bjarni <bjarni@openttd.org> | 2006-10-10 10:04:09 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2006-10-10 10:04:09 +0000 |
commit | 7311b305e8901cce3a1f646f0bc41f4de79725bf (patch) | |
tree | c6fead245b0e7cc77cf80f57e753e6db2e614885 /vehicle_gui.h | |
parent | 9c611b08483897b982eb684102abafa86e7fd65c (diff) | |
download | openttd-7311b305e8901cce3a1f646f0bc41f4de79725bf.tar.xz |
(svn r6718) -Codechange: added function to get the line height for a vehicle type
-Fix r6513: [depot window] fixed incorrect line height for large ships
-Fix r6513: [depot window] fixed incorrect resizing of the sell button
Diffstat (limited to 'vehicle_gui.h')
-rw-r--r-- | vehicle_gui.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vehicle_gui.h b/vehicle_gui.h index e13a95677..0b27bbd24 100644 --- a/vehicle_gui.h +++ b/vehicle_gui.h @@ -68,4 +68,9 @@ static inline void DrawVehicleImage(const Vehicle *v, int x, int y, int count, i } } +static inline byte GetVehicleListHeight(byte type) +{ + return (type == VEH_Train || type == VEH_Road) ? 14 : 24; +} + #endif /* VEHICLE_GUI_H */ |