diff options
-rw-r--r-- | pathfind.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pathfind.c b/pathfind.c index 449faab0e..6158280cc 100644 --- a/pathfind.c +++ b/pathfind.c @@ -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; |