diff options
author | matthijs <matthijs@openttd.org> | 2007-06-26 20:23:09 +0000 |
---|---|---|
committer | matthijs <matthijs@openttd.org> | 2007-06-26 20:23:09 +0000 |
commit | 875a3760392a60e5965372cbfffc51f903e79987 (patch) | |
tree | 863d029910d0579b204e6e4f5e3c4e8631598f56 /src/pathfind.cpp | |
parent | 25f7e8c8a0bcf8face0838252dd97330c895047b (diff) | |
download | openttd-875a3760392a60e5965372cbfffc51f903e79987.tar.xz |
(svn r10346) -Fix: Forgotten "else" in r10345 (thanks peter1138).
Diffstat (limited to 'src/pathfind.cpp')
-rw-r--r-- | src/pathfind.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pathfind.cpp b/src/pathfind.cpp index 60a3ac798..fde5f85b0 100644 --- a/src/pathfind.cpp +++ b/src/pathfind.cpp @@ -339,7 +339,7 @@ static void TPFMode1(TrackPathFinder* tpf, TileIndex tile, DiagDirection directi * tunnel and we're pathfinding backwards */ if (GetTunnelDirection(tile) == direction) { tile = SkipToEndOfTunnel(tpf, tile, direction); - } if (GetTunnelDirection(tile) != ReverseDiagDir(direction)) { + } else if (GetTunnelDirection(tile) != ReverseDiagDir(direction)) { /* We don't support moving through the sides of a tunnel * entrance :-) */ return; |