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 | 8be486c27eb8725338605053ad74e075d247e3f0 (patch) | |
tree | a6abdacf19e1ca3df7a939ab40e2a8a8e3939dc6 /src/ai/default | |
parent | 622f2511972f2f31c893c898f4f4d77848e2d3c5 (diff) | |
download | openttd-8be486c27eb8725338605053ad74e075d247e3f0.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; |