- bugfix for AI not using correct build spacing

This commit is contained in:
Mark Vejvoda 2013-02-03 23:29:16 +00:00
parent c913825650
commit d02f91d2e0
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}