Jelajahi Sumber

Update Nullkiller.cpp

Removed resetAiState from loop cause it has too many side-effects. Such as the loop going through all passes.
Xilmi 1 tahun lalu
induk
melakukan
7c6f96344a
1 mengubah file dengan 0 tambahan dan 2 penghapusan
  1. 0 2
      AI/Nullkiller/Engine/Nullkiller.cpp

+ 0 - 2
AI/Nullkiller/Engine/Nullkiller.cpp

@@ -369,8 +369,6 @@ void Nullkiller::makeTurn()
 	for(int i = 1; i <= settings->getMaxPass() && cb->getPlayerStatus(playerID) == EPlayerStatus::INGAME; i++)
 	{
 		auto start = std::chrono::high_resolution_clock::now();
-		//TODO: It's only necessary to do a resetAiState when the last action was UnlockCluster
-		resetAiState();
 		updateAiState(i);
 
 		Goals::TTask bestTask = taskptr(Goals::Invalid());