summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatthijs <matthijs@openttd.org>2007-06-26 20:23:09 +0000
committermatthijs <matthijs@openttd.org>2007-06-26 20:23:09 +0000
commit875a3760392a60e5965372cbfffc51f903e79987 (patch)
tree863d029910d0579b204e6e4f5e3c4e8631598f56
parent25f7e8c8a0bcf8face0838252dd97330c895047b (diff)
downloadopenttd-875a3760392a60e5965372cbfffc51f903e79987.tar.xz
(svn r10346) -Fix: Forgotten "else" in r10345 (thanks peter1138).
-rw-r--r--src/pathfind.cpp2
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;