(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
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user