elrail.c
changeset 4559 c853d2440065
parent 4549 60410aa1aa88
child 5116 2a33a74925c5
equal deleted inserted replaced
4558:657e73957b4b 4559:c853d2440065
   181 	isflat[TS_HOME] = trackconfig[TS_HOME] & (TRACK_BIT_HORZ | TRACK_BIT_VERT);
   181 	isflat[TS_HOME] = trackconfig[TS_HOME] & (TRACK_BIT_HORZ | TRACK_BIT_VERT);
   182 
   182 
   183 	AdjustTileh(ti->tile, &tileh[TS_HOME]);
   183 	AdjustTileh(ti->tile, &tileh[TS_HOME]);
   184 
   184 
   185 	for (i = DIAGDIR_NE; i < DIAGDIR_END; i++) {
   185 	for (i = DIAGDIR_NE; i < DIAGDIR_END; i++) {
   186 		TileIndex neighbour = ti->tile + TileOffsByDir(i);
   186 		TileIndex neighbour = ti->tile + TileOffsByDiagDir(i);
   187 		uint foundation = 0;
   187 		uint foundation = 0;
   188 		int k;
   188 		int k;
   189 
   189 
   190 		/* Here's one of the main headaches. GetTileSlope does not correct for possibly
   190 		/* Here's one of the main headaches. GetTileSlope does not correct for possibly
   191 		 * existing foundataions, so we do have to do that manually later on.*/
   191 		 * existing foundataions, so we do have to do that manually later on.*/