]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Rename "Contempt Factor" to "Contempt"
[stockfish] / src / search.cpp
index 50f5939d3497d70a5e90c3517331250b39fbe983..945f5bf25d9c9d88687e9a36e0ad3ff3285fe823 100644 (file)
@@ -187,7 +187,7 @@ void Search::think() {
 
   TimeMgr.init(Limits, RootPos.game_ply(), RootPos.side_to_move());
 
-  int cf = Options["Contempt Factor"] * PawnValueEg / 100; // From centipawns
+  int cf = Options["Contempt"] * PawnValueEg / 100; // From centipawns
   DrawValue[ RootPos.side_to_move()] = VALUE_DRAW - Value(cf);
   DrawValue[~RootPos.side_to_move()] = VALUE_DRAW + Value(cf);
 
@@ -1425,7 +1425,7 @@ void Thread::idle_loop() {
   while (!exit)
   {
       // If this thread has been assigned work, launch a search
-      if (searching)
+      while (searching)
       {
           Threads.mutex.lock();