From 812db7279dbcb5664bd74322d6e6eda8d9e887ee Mon Sep 17 00:00:00 2001 From: mathusummut Date: Sat, 23 Jun 2018 22:07:20 +0200 Subject: [PATCH] AI fix for move while upgrading --- source/glest_game/ai/ai_interface.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/source/glest_game/ai/ai_interface.cpp b/source/glest_game/ai/ai_interface.cpp index baa9ad5bb..292672cea 100644 --- a/source/glest_game/ai/ai_interface.cpp +++ b/source/glest_game/ai/ai_interface.cpp @@ -561,8 +561,8 @@ namespace throw megaglest_runtime_error(szBuf); } - /*if (unit->getProgress2() != NULL) - return result;*/ + if (unit->getProgress2() != NULL) + return result; const UnitType * unitType = unit->getType(); if (unitType == NULL) { @@ -661,8 +661,8 @@ namespace throw megaglest_runtime_error(szBuf); } - /*if (unit->getProgress2() != NULL) - return result;*/ + if (unit->getProgress2() != NULL) + return result; const UnitType * unitType = unit->getType(); if (unitType == NULL) { @@ -750,8 +750,8 @@ namespace throw megaglest_runtime_error(szBuf); } - /*if (unit->getProgress2() != NULL) - return result;*/ + if (unit->getProgress2() != NULL) + return result; const UnitType * unitType = unit->getType(); if (unitType == NULL) { @@ -838,8 +838,8 @@ namespace throw megaglest_runtime_error(szBuf); } - /*if (unit->getProgress2() != NULL) - return result;*/ + if (unit->getProgress2() != NULL) + return result; const UnitType * unitType = unit->getType(); if (unitType == NULL) {