1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 00:33:09 +00:00

Remove redundant PvNode condition

After commit 6d58bf777c we always call PvNodes
with cutNode set to false.

No functional change.
This commit is contained in:
ElbertoOne 2016-06-23 16:14:51 +02:00 committed by Marco Costalba
parent c94145b65c
commit c2c0e6b07d

View file

@ -549,6 +549,7 @@ namespace {
assert(-VALUE_INFINITE <= alpha && alpha < beta && beta <= VALUE_INFINITE);
assert(PvNode || (alpha == beta - 1));
assert(DEPTH_ZERO < depth && depth < DEPTH_MAX);
assert(!(PvNode && cutNode));
Move pv[MAX_PLY+1], quietsSearched[64];
StateInfo st;
@ -963,7 +964,7 @@ moves_loop: // When in check search starts from here
+ (fmh2 ? (*fmh2)[moved_piece][to_sq(move)] : VALUE_ZERO);
// Increase reduction for cut nodes
if (!PvNode && cutNode)
if (cutNode)
r += 2 * ONE_PLY;
// Decrease reduction for moves that escape a capture. Filter out