From ed18d02e9a18f52cff79bce4d01cbfe9faae2de4 Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 10 Nov 2010 23:43:14 +0000 Subject: (svn r21142) -Codechange: replace magic bridge length constants with proper constants (uni657) --- src/ai/api/ai_bridge.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ai/api/ai_bridge.cpp') 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; } -- cgit v1.2.3-70-g09d2