浏览代码

put trace if back

Mircea TheHonestCTO 4 月之前
父节点
当前提交
eb471ba01d
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      AI/Nullkiller2/Engine/Nullkiller.cpp

+ 5 - 1
AI/Nullkiller2/Engine/Nullkiller.cpp

@@ -385,10 +385,14 @@ void Nullkiller::makeTurn()
 			decompose(tasks, sptr(ExplorationBehavior()), MAX_DEPTH);
 
 		TTaskVec selectedTasks;
+#if NKAI_TRACE_LEVEL >= 1
 		int prioOfTask = 0;
+#endif
 		for (int prio = PriorityEvaluator::PriorityTier::INSTAKILL; prio <= PriorityEvaluator::PriorityTier::MAX_PRIORITY_TIER; ++prio)
 		{
+#if NKAI_TRACE_LEVEL >= 1
 			prioOfTask = prio;
+#endif
 			selectedTasks = buildPlan(tasks, prio);
 			if (!selectedTasks.empty() || settings->isUseFuzzy())
 				break;
@@ -512,7 +516,7 @@ bool Nullkiller::makeTurnHelperPriorityPass(Goals::TGoalVec & tempResults, int p
 			if(!executeTask(bestPrioPassTask))
 				return false;
 
-			// TODO: Inspect why it's ok to do a partial update if condition is true
+			// TODO: Mircea: Inspect why it's ok to do a partial update if condition is true
 			updateState(bestPrioPassTask->getHero() == nullptr);
 		}
 		else