src/town_gui.cpp
changeset 6573 7624f942237f
parent 6144 5a0ffbf27ced
child 6719 4cc327ad39d5
child 6918 5589c415e28f
equal deleted inserted replaced
6572:e35266003390 6573:7624f942237f
   402 	int r = ta->population - tb->population;
   402 	int r = ta->population - tb->population;
   403 	if (_town_sort_order & 1) r = -r;
   403 	if (_town_sort_order & 1) r = -r;
   404 	return r;
   404 	return r;
   405 }
   405 }
   406 
   406 
   407 static void MakeSortedTownList(void)
   407 static void MakeSortedTownList()
   408 {
   408 {
   409 	const Town* t;
   409 	const Town* t;
   410 	uint n = 0;
   410 	uint n = 0;
   411 
   411 
   412 	/* Create array for sorting */
   412 	/* Create array for sorting */
   511 	_town_directory_widgets,
   511 	_town_directory_widgets,
   512 	TownDirectoryWndProc
   512 	TownDirectoryWndProc
   513 };
   513 };
   514 
   514 
   515 
   515 
   516 void ShowTownDirectory(void)
   516 void ShowTownDirectory()
   517 {
   517 {
   518 	Window *w = AllocateWindowDescFront(&_town_directory_desc, 0);
   518 	Window *w = AllocateWindowDescFront(&_town_directory_desc, 0);
   519 
   519 
   520 	if (w != NULL) {
   520 	if (w != NULL) {
   521 		w->vscroll.cap = 16;
   521 		w->vscroll.cap = 16;