From d02f91d2e099fcd7afc5feecc11f2e13d701f2bc Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Sun, 3 Feb 2013 23:29:16 +0000 Subject: [PATCH] - bugfix for AI not using correct build spacing --- source/glest_game/ai/ai.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/glest_game/ai/ai.cpp b/source/glest_game/ai/ai.cpp index f77cdc45..3a92d8f4 100644 --- a/source/glest_game/ai/ai.cpp +++ b/source/glest_game/ai/ai.cpp @@ -284,8 +284,8 @@ void Ai::init(AiInterface *aiInterface, int useStartLocation) { minWorkerAttackersHarvesting = faction->getAIBehaviorStaticOverideValue(aibsvcMinWorkerAttackersHarvesting); //printf("Discovered overriden static value for AI, scoutResourceRange = %d\n",scoutResourceRange); } - if(faction->getAIBehaviorStaticOverideValue(aibsvcMinWorkerAttackersHarvesting) != INT_MAX) { - minBuildSpacing = faction->getAIBehaviorStaticOverideValue(aibsvcMinWorkerAttackersHarvesting); + if(faction->getAIBehaviorStaticOverideValue(aibsvcMinBuildSpacing) != INT_MAX) { + minBuildSpacing = faction->getAIBehaviorStaticOverideValue(aibsvcMinBuildSpacing); //printf("Discovered overriden static value for AI, scoutResourceRange = %d\n",scoutResourceRange); }