diff options
author | smatz <smatz@openttd.org> | 2008-01-23 14:51:36 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-01-23 14:51:36 +0000 |
commit | 0b888ccc001c3157d1990467036a557783ca38be (patch) | |
tree | a6abdacf19e1ca3df7a939ab40e2a8a8e3939dc6 /src/pathfind.cpp | |
parent | 9515328962991b1992310ac29f312f5774ac1eaf (diff) | |
download | openttd-0b888ccc001c3157d1990467036a557783ca38be.tar.xz |
(svn r11960) -Cleanup: simplify some IsTunnel(Tile) / IsBridge(Tile) conditions
Diffstat (limited to 'src/pathfind.cpp')
-rw-r--r-- | src/pathfind.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pathfind.cpp b/src/pathfind.cpp index 5ac8277cf..1ecbce8b2 100644 --- a/src/pathfind.cpp +++ b/src/pathfind.cpp @@ -313,7 +313,7 @@ static void TPFMode1(TrackPathFinder* tpf, TileIndex tile, DiagDirection directi * entrance :-) */ return; } - } else { + } else { // IsBridge(tile) TileIndex tile_end; if (GetTunnelBridgeDirection(tile) != direction || GetTunnelBridgeTransportType(tile) != tpf->tracktype) { @@ -733,7 +733,7 @@ start_at: tile = flotr.tile; /* tile now points to the exit tile of the tunnel */ } - } else { + } else { // IsBridge(tile) TileIndex tile_end; if (GetTunnelBridgeDirection(tile) != ReverseDiagDir(direction)) { /* We are not just leaving the bridge */ |