File diff r1961:7949b074d614 → r1962:cc4c06e3f6b5
station_gui.c
Show inline comments
 
@@ -145,25 +145,25 @@ static void PlayerStationsWndProc(Window
 

	
 
		if (_station_sort_dirty[window_number]) { // resort in case of a station rename.
 
			MakeSortedStationList(window_number);
 
		}
 

	
 
		// stations are stored as a cummulative index, eg 25, 41, 43. This means
 
		// Player0: 25; Player1: (41-25) 16; Player2: (43-41) 2 stations
 
		i = (window_number == 0) ? 0 : _num_station_sort[window_number-1];
 
		SetVScrollCount(w, _num_station_sort[window_number] - i);
 

	
 
		/* draw widgets, with player's name in the caption */
 
		{
 
			Player *p = DEREF_PLAYER(window_number);
 
			Player *p = GetPlayer(window_number);
 
			SetDParam(0, p->name_1);
 
			SetDParam(1, p->name_2);
 
			SetDParam(2, w->vscroll.count);
 
			DrawWindowWidgets(w);
 
		}
 

	
 
		{
 
			byte p = 0;
 
			Station *st;
 
			int x,xb = 2;
 
			int y = 16;	// offset from top of widget
 
			int j;