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 | 02c54475fa78f7ca00da066c2e45da098d53affe (patch) | |
tree | 863d029910d0579b204e6e4f5e3c4e8631598f56 | |
parent | a0a9a7f3cd058bc87e5511d2e02a9e8bafec3bf5 (diff) | |
download | openttd-02c54475fa78f7ca00da066c2e45da098d53affe.tar.xz |
(svn r10346) -Fix: Forgotten "else" in r10345 (thanks peter1138).
-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; |