File diff r17388:4c1f53028687 → r17389:80d374d6031a
src/train_cmd.cpp
Show inline comments
 
@@ -2210,14 +2210,14 @@ static PBSTileInfo ExtendTrainReservatio
 

	
 
			/* If we did skip some tiles, backtrack to the first skipped tile so the pathfinder
 
			 * actually starts its search at the first unreserved tile. */
 
			if (ft.m_tiles_skipped != 0) ft.m_new_tile -= TileOffsByDiagDir(ft.m_exitdir) * ft.m_tiles_skipped;
 

	
 
			/* Choice found, path valid but not okay. Save info about the choice tile as well. */
 
			if (new_tracks) *new_tracks = TrackdirBitsToTrackBits(ft.m_new_td_bits);
 
			if (enterdir) *enterdir = ft.m_exitdir;
 
			if (new_tracks != NULL) *new_tracks = TrackdirBitsToTrackBits(ft.m_new_td_bits);
 
			if (enterdir != NULL) *enterdir = ft.m_exitdir;
 
			return PBSTileInfo(ft.m_new_tile, ft.m_old_td, false);
 
		}
 

	
 
		tile = ft.m_new_tile;
 
		cur_td = FindFirstTrackdir(ft.m_new_td_bits);