diff options
author | rubidium <rubidium@openttd.org> | 2009-11-16 20:58:38 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-11-16 20:58:38 +0000 |
commit | ef11ce84ee8fc81def8bcdef6e2307869f9637f1 (patch) | |
tree | df8a5446047757f0958a0df69c244d963fa4c4ff /src/depot_gui.cpp | |
parent | 2e54ff1aa2ed01737a6b1a2a9c77f99f03e4d446 (diff) | |
download | openttd-ef11ce84ee8fc81def8bcdef6e2307869f9637f1.tar.xz |
(svn r18128) -Codechange: rename GetVehicleListHeight to GetVehicleHeight as it has nothing to do with the height of the vehicle lists.
Diffstat (limited to 'src/depot_gui.cpp')
-rw-r--r-- | src/depot_gui.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp index a55f4c8a3..93c2b7c64 100644 --- a/src/depot_gui.cpp +++ b/src/depot_gui.cpp @@ -196,7 +196,7 @@ static void InitBlocksizeForShipAircraft(VehicleType type) _block_sizes[VEH_AIRCRAFT].width = max(74U, max_width); break; } - _block_sizes[type].height = max(GetVehicleListHeight(type), max_height); + _block_sizes[type].height = max(GetVehicleHeight(type), max_height); } /** Set the size of the blocks in the window so we can be sure that they are big enough for the vehicle sprites in the current game. @@ -204,10 +204,10 @@ static void InitBlocksizeForShipAircraft(VehicleType type) void InitDepotWindowBlockSizes() { _block_sizes[VEH_TRAIN].width = 1; - _block_sizes[VEH_TRAIN].height = GetVehicleListHeight(VEH_TRAIN); + _block_sizes[VEH_TRAIN].height = GetVehicleHeight(VEH_TRAIN); _block_sizes[VEH_ROAD].width = 56; - _block_sizes[VEH_ROAD].height = GetVehicleListHeight(VEH_ROAD); + _block_sizes[VEH_ROAD].height = GetVehicleHeight(VEH_ROAD); InitBlocksizeForShipAircraft(VEH_SHIP); InitBlocksizeForShipAircraft(VEH_AIRCRAFT); @@ -255,7 +255,7 @@ struct DepotWindow : Window { void DrawVehicleInDepot(const Vehicle *v, int x, int y, int left, int right) const { bool free_wagon = false; - int sprite_y = y + this->resize.step_height - GetVehicleListHeight(v->type); + int sprite_y = y + this->resize.step_height - GetVehicleHeight(v->type); switch (v->type) { case VEH_TRAIN: { |