From f49491ddcd44c53d1f43686002db747ff0bf8200 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Sun, 6 Dec 2009 11:46:57 +0000 Subject: [PATCH] (svn r18414) -Fix: In the depot window, 'free' wagons were not drawn resize.step_height apart --- src/depot_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp index a3d4bb6887..7c265489e5 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); }