浏览代码

Warnings

Commented out relics from debugging that were causing warnings for unused variables.
Xilmi 1 年之前
父节点
当前提交
d4b4a6c4db
共有 1 个文件被更改,包括 10 次插入10 次删除
  1. 10 10
      AI/Nullkiller/Engine/Nullkiller.cpp

+ 10 - 10
AI/Nullkiller/Engine/Nullkiller.cpp

@@ -352,16 +352,16 @@ void Nullkiller::makeTurn()
 	const int MAX_DEPTH = 10;
 	const int MAX_DEPTH = 10;
 	const float FAST_TASK_MINIMAL_PRIORITY = 0.7f;
 	const float FAST_TASK_MINIMAL_PRIORITY = 0.7f;
 
 
-	float totalHeroStrength = 0;
-	int totalTownLevel = 0;
-	for (auto heroInfo : cb->getHeroesInfo())
-	{
-		totalHeroStrength += heroInfo->getTotalStrength();
-	}
-	for (auto townInfo : cb->getTownsInfo())
-	{
-		totalTownLevel += townInfo->getTownLevel();
-	}
+	//float totalHeroStrength = 0;
+	//int totalTownLevel = 0;
+	//for (auto heroInfo : cb->getHeroesInfo())
+	//{
+	//	totalHeroStrength += heroInfo->getTotalStrength();
+	//}
+	//for (auto townInfo : cb->getTownsInfo())
+	//{
+	//	totalTownLevel += townInfo->getTownLevel();
+	//}
 
 
 	resetAiState();
 	resetAiState();