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/ai/default | |
parent | 9515328962991b1992310ac29f312f5774ac1eaf (diff) | |
download | openttd-0b888ccc001c3157d1990467036a557783ca38be.tar.xz |
(svn r11960) -Cleanup: simplify some IsTunnel(Tile) / IsBridge(Tile) conditions
Diffstat (limited to 'src/ai/default')
-rw-r--r-- | src/ai/default/default.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ai/default/default.cpp b/src/ai/default/default.cpp index 4d3cb8c42..e86199ed4 100644 --- a/src/ai/default/default.cpp +++ b/src/ai/default/default.cpp @@ -2228,7 +2228,7 @@ static bool AiRemoveTileAndGoForward(Player *p) return false; _players_ai[p->index].cur_tile_a = TILE_MASK(_build_tunnel_endtile - TileOffsByDiagDir(_players_ai[p->index].cur_dir_a)); return true; - } else { + } else { // IsBridge(tile) // Check if the bridge points in the right direction. // This is not really needed the first place AiRemoveTileAndGoForward is called. if (DiagDirToAxis(GetTunnelBridgeDirection(tile)) != (_players_ai[p->index].cur_dir_a & 1)) return false; |