Fix CECP analysis mode after passing moves
authorFabian Fichter <ianfab@users.noreply.github.com>
Tue, 17 Nov 2020 20:36:52 +0000 (21:36 +0100)
committerFabian Fichter <ianfab@users.noreply.github.com>
Tue, 17 Nov 2020 20:36:52 +0000 (21:36 +0100)
Continue searching in analysis mode after a passing move is executed.

src/xboard.cpp

index cb203e4..4f9619a 100644 (file)
@@ -322,7 +322,9 @@ void StateMachine::process_command(std::string token, std::istringstream& is) {
       else
           setboard(fen);
       // Winboard sends setboard after passing moves
-      if (pos.side_to_move() == playColor)
+      if (Options["UCI_AnalyseMode"])
+          go(analysisLimits);
+      else if (pos.side_to_move() == playColor)
       {
           go(limits);
           moveAfterSearch = true;