X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=5e356115b00eb5944c58bde4f069b861e9b13ede;hp=376705d1d4118e97ed3af675c5c243f5629dc0b5;hb=3b1f552b08b254a5b2d8234ba35d52d3ee86a7cb;hpb=4739037f967ac3c818907e89cc88c7b97021d027 diff --git a/src/search.cpp b/src/search.cpp index 376705d1..5e356115 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -255,7 +255,7 @@ namespace { multiPV = std::max(multiPV, skill.candidates_size()); // Iterative deepening loop until requested to stop or target depth reached - while (++depth < MAX_PLY && !Signals.stop && (!Limits.depth || depth <= Limits.depth)) + while (++depth < DEPTH_MAX && !Signals.stop && (!Limits.depth || depth <= Limits.depth)) { // Age out PV variability metric BestMoveChanges *= 0.5; @@ -1252,7 +1252,7 @@ moves_loop: // When in check and at SpNode search starts from here // Increase history value of the cut-off move and decrease all the other // played quiet moves. - Value bonus = Value(4 * int(depth) * int(depth)); + Value bonus = Value(int(depth) * int(depth)); History.update(pos.moved_piece(move), to_sq(move), bonus); for (int i = 0; i < quietsCnt; ++i) {