diff options
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 */ |