# HG changeset patch # User peter1138 # Date 1260100017 0 # Node ID 22d1d919b00e211afcc4ea695c9ab028f5b9aaf5 # Parent 0ee48164ffe21098669132882d22a729f49179f9 (svn r18414) -Fix: In the depot window, 'free' wagons were not drawn resize.step_height apart diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp --- a/src/depot_gui.cpp +++ b/src/depot_gui.cpp @@ -326,7 +326,7 @@ 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); }