train_gui.c
changeset 877 a0849f41e748
parent 867 581154a08a78
child 878 8f4f2ef6f674
equal deleted inserted replaced
876:d275d6d2aa65 877:a0849f41e748
   331 	}
   331 	}
   332 	SetVScrollCount(w, num);
   332 	SetVScrollCount(w, num);
   333 	SetHScrollCount(w, hnum);
   333 	SetHScrollCount(w, hnum);
   334 
   334 
   335 	/* locate the depot struct */
   335 	/* locate the depot struct */
   336 	for(d=_depots; d->xy != (TileIndex)tile; d++) {}
   336 	for (d = _depots; d->xy != (TileIndex)tile; d++) {
       
   337 		assert(d < endof(_depots);
       
   338 	}
   337 
   339 
   338 	SetDParam(0, d->town_index);
   340 	SetDParam(0, d->town_index);
   339 	DrawWindowWidgets(w);
   341 	DrawWindowWidgets(w);
   340 
   342 
   341 	x = 2;
   343 	x = 2;