pathfind.c
changeset 5456 6ae660a4f3a5
parent 5455 b3ceb5649239
child 5457 a0591c7d9db8
equal deleted inserted replaced
5455:b3ceb5649239 5456:6ae660a4f3a5
   339 	 * iterate all the tracks in a signal block, even when a normal train would
   339 	 * iterate all the tracks in a signal block, even when a normal train would
   340 	 * not reach it (for example, when two lines merge */
   340 	 * not reach it (for example, when two lines merge */
   341 	if (tpf->hasbit_13)
   341 	if (tpf->hasbit_13)
   342 		return;
   342 		return;
   343 
   343 
   344 	tile = tile_org;
       
   345 	direction = ReverseDiagDir(direction);
   344 	direction = ReverseDiagDir(direction);
       
   345 	tile += TileOffsByDiagDir(direction);
   346 
   346 
   347 	bits = GetTileTrackStatus(tile, tpf->tracktype);
   347 	bits = GetTileTrackStatus(tile, tpf->tracktype);
   348 	bits |= (bits >> 8);
   348 	bits |= (bits >> 8);
   349 
   349 
   350 	if ( (byte)bits != tpf->var2) {
   350 	if ( (byte)bits != tpf->var2) {