summaryrefslogtreecommitdiff
path: root/src/ai/default/default.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-01-23 14:51:36 +0000
committersmatz <smatz@openttd.org>2008-01-23 14:51:36 +0000
commit8be486c27eb8725338605053ad74e075d247e3f0 (patch)
treea6abdacf19e1ca3df7a939ab40e2a8a8e3939dc6 /src/ai/default/default.cpp
parent622f2511972f2f31c893c898f4f4d77848e2d3c5 (diff)
downloadopenttd-8be486c27eb8725338605053ad74e075d247e3f0.tar.xz
(svn r11960) -Cleanup: simplify some IsTunnel(Tile) / IsBridge(Tile) conditions
Diffstat (limited to 'src/ai/default/default.cpp')
-rw-r--r--src/ai/default/default.cpp2
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;