comparison src/depot_gui.cpp @ 13885:22d1d919b00e draft

(svn r18414) -Fix: In the depot window, 'free' wagons were not drawn resize.step_height apart
author peter1138 <peter1138@openttd.org>
date Sun, 06 Dec 2009 11:46:57 +0000
parents 3e68f07eb821
children 0a874c3b0514
comparison
equal deleted inserted replaced
13884:0ee48164ffe2 13885:22d1d919b00e
324 } 324 }
325 325
326 maxval = min(this->vehicle_list.Length() + this->wagon_list.Length(), (this->vscroll.GetPosition() * boxes_in_each_row) + (rows_in_display * boxes_in_each_row)); 326 maxval = min(this->vehicle_list.Length() + this->wagon_list.Length(), (this->vscroll.GetPosition() * boxes_in_each_row) + (rows_in_display * boxes_in_each_row));
327 327
328 /* draw the train wagons, that do not have an engine in front */ 328 /* draw the train wagons, that do not have an engine in front */
329 for (; num < maxval; num++, y += 14) { 329 for (; num < maxval; num++, y += this->resize.step_height) {
330 const Vehicle *v = this->wagon_list[num - this->vehicle_list.Length()]; 330 const Vehicle *v = this->wagon_list[num - this->vehicle_list.Length()];
331 this->DrawVehicleInDepot(v, r.left, r.right, y); 331 this->DrawVehicleInDepot(v, r.left, r.right, y);
332 } 332 }
333 } 333 }
334 334