]> git.sesse.net Git - stockfish/blobdiff - src/uci.cpp
Only on Windows do wait for input at the end of benchmark
[stockfish] / src / uci.cpp
index a64520050f084e481cc2804aba1dec5406f21c66..0a1de3127ae8aa167d6db35032549ee3e5329ac9 100644 (file)
@@ -117,13 +117,13 @@ namespace {
     if (token == "uci")
     {
         cout << "id name " << engine_name()
-             << "\nid author Tord Romstad, Marco Costalba\n";
+             << "\nid author Tord Romstad, Marco Costalba, Joona Kiiski\n";
         print_uci_options();
         cout << "uciok" << endl;
     }
     else if (token == "ucinewgame")
     {
-        TT.clear();
+        push_button("Clear Hash");
         Position::init_piece_square_tables();
         RootPosition.from_fen(StartPosition);
     }
@@ -210,9 +210,9 @@ namespace {
                 if (RootPosition.rule_50_counter() == 0)
                     RootPosition.reset_game_ply();
             }
-            // Our StateInfo st is about going out of scope,
-            // so save its content before they disappear.
-            RootPosition.setStartState(st);
+            // Our StateInfo st is about going out of scope so copy
+            // its content inside RootPosition before they disappear.
+            RootPosition.saveState();
         }
     }
   }