station_gui.c
changeset 69 f8c29cdb388e
parent 65 f9f866bc609c
child 164 0cbdf3c9bde1
equal deleted inserted replaced
68:4051f3c8efa2 69:f8c29cdb388e
   106 	for (i = &_num_station_sort[1]; i != endof(_num_station_sort); i++) {*i += *(i-1);}
   106 	for (i = &_num_station_sort[1]; i != endof(_num_station_sort); i++) {*i += *(i-1);}
   107 
   107 
   108 	_last_station_idx = 255; // used for "cache"
   108 	_last_station_idx = 255; // used for "cache"
   109 	qsort(_station_sort, n, sizeof(_station_sort[0]), StationSorterByName);
   109 	qsort(_station_sort, n, sizeof(_station_sort[0]), StationSorterByName);
   110 	
   110 	
   111 	//DEBUG(misc, 1) ("Resorting Stations list...");
   111 	DEBUG(misc, 1) ("Resorting Stations list...");
   112 }
   112 }
   113 
   113 
   114 static void PlayerStationsWndProc(Window *w, WindowEvent *e)
   114 static void PlayerStationsWndProc(Window *w, WindowEvent *e)
   115 {
   115 {
   116 	switch(e->event) {
   116 	switch(e->event) {