mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-29 09:29:10 +00:00
(svn r16739) -Codechange: Initialize internal data before computing the widgets.
This commit is contained in:
@@ -588,15 +588,14 @@ private:
|
|||||||
public:
|
public:
|
||||||
TownDirectoryWindow(const WindowDesc *desc) : Window()
|
TownDirectoryWindow(const WindowDesc *desc) : Window()
|
||||||
{
|
{
|
||||||
this->townline_height = FONT_HEIGHT_NORMAL;
|
|
||||||
this->InitNested(desc, 0);
|
|
||||||
|
|
||||||
this->vscroll.cap = this->nested_array[TDW_CENTERTOWN]->current_y / this->resize.step_height;
|
|
||||||
|
|
||||||
this->towns.SetListing(this->last_sorting);
|
this->towns.SetListing(this->last_sorting);
|
||||||
this->towns.SetSortFuncs(this->sorter_funcs);
|
this->towns.SetSortFuncs(this->sorter_funcs);
|
||||||
this->towns.ForceRebuild();
|
this->towns.ForceRebuild();
|
||||||
this->BuildSortTownList();
|
this->BuildSortTownList();
|
||||||
|
|
||||||
|
this->townline_height = FONT_HEIGHT_NORMAL;
|
||||||
|
this->InitNested(desc, 0);
|
||||||
|
this->vscroll.cap = this->nested_array[TDW_CENTERTOWN]->current_y / this->resize.step_height;
|
||||||
}
|
}
|
||||||
|
|
||||||
~TownDirectoryWindow()
|
~TownDirectoryWindow()
|
||||||
|
Reference in New Issue
Block a user