소스 검색

Update Nullkiller.cpp

Removed resetAiState from loop cause it has too many side-effects. Such as the loop going through all passes.
Xilmi 1 년 전
부모
커밋
7c6f96344a
1개의 변경된 파일0개의 추가작업 그리고 2개의 파일을 삭제
  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());