Changeset - r8480:5e4c1fa52fa7
[Not reviewed]
master
0 1 0
smatz - 16 years ago 2008-02-04 14:08:02
smatz@openttd.org
(svn r12055) -Fix: another way to fix AI trying to build road through depots
1 file changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/pathfind.cpp
Show inline comments
 
@@ -287,7 +287,8 @@ static void TPFMode1(TrackPathFinder* tp
 
				tpf->the_dir = (Trackdir)((_otherdir_mask[direction] & (byte)(1 << i)) ? (i + 8) : i);
 
				RememberData rd = tpf->rd;
 

	
 
				if (TPFSetTileBit(tpf, tile, tpf->the_dir) &&
 
				/* make sure we are not leaving from invalid side */
 
				if (TPFSetTileBit(tpf, tile, tpf->the_dir) && CanAccessTileInDir(tile, TrackdirToExitdir(tpf->the_dir), tpf->tracktype) &&
 
						!tpf->enum_proc(tile, tpf->userdata, tpf->the_dir, tpf->rd.cur_length, &tpf->rd.pft_var6) ) {
 
					TPFMode1(tpf, tile, _tpf_new_direction[tpf->the_dir]);
 
				}
0 comments (0 inline, 0 general)