diff options
author | bjarni <bjarni@openttd.org> | 2007-02-10 13:37:32 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2007-02-10 13:37:32 +0000 |
commit | 0c8078ae29c2ac5f03d295aebf273150224cb55e (patch) | |
tree | 59906a996e65dbe3ecf41015b0f876d77b68498a /src/vehicle_gui.h | |
parent | 356e47f1087b56244694a646eb73ee6c9264a229 (diff) | |
download | openttd-0c8078ae29c2ac5f03d295aebf273150224cb55e.tar.xz |
(svn r8661) -Fix: [depot windows] Enlarge the blocks in the depot window if a sprite is too big to fit (ships and aircraft only)
-Codechange: depot windows default now makes a 1x1 matrix and resize the window by block size*number of blocks
This will make less vehicle type specific code and easier to read resizing based on sprite sizes
Diffstat (limited to 'src/vehicle_gui.h')
-rw-r--r-- | src/vehicle_gui.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle_gui.h b/src/vehicle_gui.h index dc5a992f1..0f6ccd0fd 100644 --- a/src/vehicle_gui.h +++ b/src/vehicle_gui.h @@ -64,7 +64,7 @@ static inline void DrawVehicleImage(const Vehicle *v, int x, int y, int count, i } } -static inline byte GetVehicleListHeight(byte type) +static inline uint GetVehicleListHeight(byte type) { return (type == VEH_Train || type == VEH_Road) ? 14 : 24; } |