train_gui.c
changeset 877 ce8cb2c09578
parent 867 dffd33233237
child 878 8beeebc0f1bd
equal deleted inserted replaced
876:91cc529927c1 877:ce8cb2c09578
   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;