(svn r10346) -Fix: Forgotten "else" in r10345 (thanks peter1138).

This commit is contained in:
matthijs 2007-06-26 20:23:09 +00:00
parent a0a9a7f3cd
commit 02c54475fa
1 changed files with 1 additions and 1 deletions

View File

@ -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;