(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:
bjarni
2006-10-10 10:04:09 +00:00
parent 9c611b0848
commit 7311b305e8
2 changed files with 12 additions and 7 deletions

View File

@@ -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 */