town_gui.c
changeset 69 f8c29cdb388e
parent 65 f9f866bc609c
child 121 c2f18f4d8be1
equal deleted inserted replaced
68:4051f3c8efa2 69:f8c29cdb388e
   391 	_num_town_sort = n;
   391 	_num_town_sort = n;
   392 
   392 
   393 	_last_town_idx = 255; // used for "cache"
   393 	_last_town_idx = 255; // used for "cache"
   394 	qsort(_town_sort, n, 1, _town_sort_order & 2 ? TownSorterByPop : TownSorterByName);
   394 	qsort(_town_sort, n, 1, _town_sort_order & 2 ? TownSorterByPop : TownSorterByName);
   395 
   395 
   396 	//DEBUG(misc, 1) ("Resorting Towns list...");
   396 	DEBUG(misc, 1) ("Resorting Towns list...");
   397 }
   397 }
   398 
   398 
   399 
   399 
   400 static void TownDirectoryWndProc(Window *w, WindowEvent *e)
   400 static void TownDirectoryWndProc(Window *w, WindowEvent *e)
   401 {
   401 {