summaryrefslogtreecommitdiff
path: root/src/ai/api
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-11-10 23:43:14 +0000
committerrubidium <rubidium@openttd.org>2010-11-10 23:43:14 +0000
commited18d02e9a18f52cff79bce4d01cbfe9faae2de4 (patch)
tree96aa45c14247e75526e67acafa2c14c46e2f9c83 /src/ai/api
parent65e6c9fd12b0ac3fc25934c14771412a6a5538bd (diff)
downloadopenttd-ed18d02e9a18f52cff79bce4d01cbfe9faae2de4.tar.xz
(svn r21142) -Codechange: replace magic bridge length constants with proper constants (uni657)
Diffstat (limited to 'src/ai/api')
-rw-r--r--src/ai/api/ai_bridge.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ai/api/ai_bridge.cpp b/src/ai/api/ai_bridge.cpp
index 79a4f84cb..30c1cee6c 100644
--- a/src/ai/api/ai_bridge.cpp
+++ b/src/ai/api/ai_bridge.cpp
@@ -152,7 +152,7 @@ static void _DoCommandReturnBuildBridge1(class AIInstance *instance)
if (!IsValidBridge(bridge_id)) return -1;
uint max = ::GetBridgeSpec(bridge_id)->max_length;
- if (max >= 16 && _settings_game.construction.longbridges) max = 100;
+ if (max >= MAX_BRIDGE_LENGTH && _settings_game.construction.longbridges) max = MAX_BRIDGE_LENGTH_LONGBRIDGES;
return max + 2;
}