mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-07-20 02:45:37 +01:00
(svn r10346) -Fix: Forgotten "else" in r10345 (thanks peter1138).
This commit is contained in:
parent
a0a9a7f3cd
commit
02c54475fa
@ -339,7 +339,7 @@ static void TPFMode1(TrackPathFinder* tpf, TileIndex tile, DiagDirection directi
|
|||||||
* tunnel and we're pathfinding backwards */
|
* tunnel and we're pathfinding backwards */
|
||||||
if (GetTunnelDirection(tile) == direction) {
|
if (GetTunnelDirection(tile) == direction) {
|
||||||
tile = SkipToEndOfTunnel(tpf, 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
|
/* We don't support moving through the sides of a tunnel
|
||||||
* entrance :-) */
|
* entrance :-) */
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user