summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2009-09-23 19:57:56 +0000
committeralberth <alberth@openttd.org>2009-09-23 19:57:56 +0000
commit39c14f904423acc5fd16e338a6a1d52d1162a38f (patch)
treedee9357d4264cc15b15f7583785e539411af213d /src
parent2d03e0af5d3ec32f905fedf1a780bad4ff058e83 (diff)
downloadopenttd-39c14f904423acc5fd16e338a6a1d52d1162a38f.tar.xz
(svn r17624) -Codechange: Swap entries in _resize_cap[][] so the code does what the docs say.
Diffstat (limited to 'src')
-rw-r--r--src/depot_gui.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp
index 770ac2cab..004f6fc8b 100644
--- a/src/depot_gui.cpp
+++ b/src/depot_gui.cpp
@@ -176,10 +176,10 @@ uint _block_sizes[4][2];
/* Array to hold the default resize capacities
* First part is the vehicle type, while the last is 0 = x, 1 = y */
static const uint _resize_cap[][2] = {
-/* VEH_TRAIN */ {6, 10 * 29},
-/* VEH_ROAD */ {5, 5},
-/* VEH_SHIP */ {3, 3},
-/* VEH_AIRCRAFT */ {3, 4},
+ {10 * 29, 6}, ///< VEH_TRAIN
+ { 5, 5}, ///< VEH_ROAD
+ { 3, 3}, ///< VEH_SHIP
+ { 4, 3}, ///< VEH_AIRCRAFT
};
static void ResizeDefaultWindowSizeForTrains()
@@ -656,8 +656,8 @@ struct DepotWindow : Window {
/* Resize the window according to the vehicle type */
/* Set the number of blocks in each direction */
- this->vscroll.SetCapacity(_resize_cap[type][0]);
- this->hscroll.SetCapacity(_resize_cap[type][1]);
+ this->hscroll.SetCapacity(_resize_cap[type][0]);
+ this->vscroll.SetCapacity(_resize_cap[type][1]);
/* Set the block size */
this->resize.step_width = _block_sizes[type][0];