Update to 1.7.2

This commit is contained in:
Pavel Stupnikov
2018-02-16 00:40:57 +03:00
50 changed files with 817 additions and 838 deletions
+3 -2
View File
@@ -1,4 +1,4 @@
/* $Id: depot_gui.cpp 27630 2016-08-15 18:33:52Z frosch $ */
/* $Id: depot_gui.cpp 27940 2017-12-11 19:24:46Z frosch $ */
/*
* This file is part of OpenTTD.
@@ -658,7 +658,8 @@ struct DepotWindow : Window {
}
/* Always have 1 empty row, so people can change the setting of the train */
this->vscroll->SetCount(this->vehicle_list.Length() + this->wagon_list.Length() + 1);
this->hscroll->SetCount(max_width);
/* Always make it longer than the longest train, so you can attach vehicles at the end */
this->hscroll->SetCount(max_width + ScaleGUITrad(2 * VEHICLEINFO_FULL_VEHICLE_WIDTH + 1));
} else {
this->vscroll->SetCount(CeilDiv(this->vehicle_list.Length(), this->num_columns));
}