src/town_gui.cpp
changeset 9529 00028640ee3a
parent 9413 7042a8ec3fa8
child 9627 3497448171a8
equal deleted inserted replaced
9528:b4e46d96ee04 9529:00028640ee3a
   543 		this->SortTownList();
   543 		this->SortTownList();
   544 
   544 
   545 		SetVScrollCount(this, this->towns.Length());
   545 		SetVScrollCount(this, this->towns.Length());
   546 
   546 
   547 		this->DrawWidgets();
   547 		this->DrawWidgets();
   548 		this->DrawSortButtonState(this->towns.sort_type == 0 ? TDW_SORTNAME : TDW_SORTPOPULATION, this->towns.IsDescSortOrder() ? SBS_DOWN : SBS_UP);
   548 		this->DrawSortButtonState(this->towns.SortType() == 0 ? TDW_SORTNAME : TDW_SORTPOPULATION, this->towns.IsDescSortOrder() ? SBS_DOWN : SBS_UP);
   549 
   549 
   550 		{
   550 		{
   551 			int n = 0;
   551 			int n = 0;
   552 			uint16 i = this->vscroll.pos;
   552 			uint16 i = this->vscroll.pos;
   553 			int y = 28;
   553 			int y = 28;