summaryrefslogtreecommitdiff
path: root/src/depot_gui.cpp
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2009-12-06 11:46:57 +0000
committerpeter1138 <peter1138@openttd.org>2009-12-06 11:46:57 +0000
commitf49491ddcd44c53d1f43686002db747ff0bf8200 (patch)
treed2016bd65d683073775ee6f4d4bfdec688aac8d0 /src/depot_gui.cpp
parent41d2214e7e5a72be58e1b97a7f5f04a1b4b6660b (diff)
downloadopenttd-f49491ddcd44c53d1f43686002db747ff0bf8200.tar.xz
(svn r18414) -Fix: In the depot window, 'free' wagons were not drawn resize.step_height apart
Diffstat (limited to 'src/depot_gui.cpp')
-rw-r--r--src/depot_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp
index a3d4bb688..7c265489e 100644
--- a/src/depot_gui.cpp
+++ b/src/depot_gui.cpp
@@ -326,7 +326,7 @@ struct DepotWindow : Window {
maxval = min(this->vehicle_list.Length() + this->wagon_list.Length(), (this->vscroll.GetPosition() * boxes_in_each_row) + (rows_in_display * boxes_in_each_row));
/* draw the train wagons, that do not have an engine in front */
- for (; num < maxval; num++, y += 14) {
+ for (; num < maxval; num++, y += this->resize.step_height) {
const Vehicle *v = this->wagon_list[num - this->vehicle_list.Length()];
this->DrawVehicleInDepot(v, r.left, r.right, y);
}