Changeset - r2486:04f0f083daaf
[Not reviewed]
master
0 1 0
tron - 19 years ago 2005-10-04 06:34:39
tron@openttd.org
(svn r3012) Extract the correct bits when checking if it's a road or rail tunnel; this is not flagged as fix, because it accidently worked
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
pathfind.c
Show inline comments
 
@@ -708,7 +708,7 @@ start_at:
 
				(uint)(_m[tile].m5 & 3) != (direction ^ 2)) {
 
				/* This is a tunnel tile */
 
				/* We are not just driving out of the tunnel */
 
				if ( (uint)(_m[tile].m5 & 3) != direction || ((_m[tile].m5>>1)&6) != tpf->tracktype)
 
				if ( (uint)(_m[tile].m5 & 3) != direction || GB(_m[tile].m5, 2, 2) != tpf->tracktype)
 
					/* We are not driving into the tunnel, or it
 
					 * is an invalid tunnel */
 
					continue;
0 comments (0 inline, 0 general)