From 02c54475fa78f7ca00da066c2e45da098d53affe Mon Sep 17 00:00:00 2001 From: matthijs Date: Tue, 26 Jun 2007 20:23:09 +0000 Subject: [PATCH] (svn r10346) -Fix: Forgotten "else" in r10345 (thanks peter1138). --- src/pathfind.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pathfind.cpp b/src/pathfind.cpp index 60a3ac7984..fde5f85b01 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;