From 0b888ccc001c3157d1990467036a557783ca38be Mon Sep 17 00:00:00 2001 From: smatz Date: Wed, 23 Jan 2008 14:51:36 +0000 Subject: (svn r11960) -Cleanup: simplify some IsTunnel(Tile) / IsBridge(Tile) conditions --- src/ai/default/default.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ai') 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; -- cgit v1.2.3-70-g09d2