1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-05-01 01:03:09 +00:00

Simplify redundant condition.

closes https://github.com/official-stockfish/Stockfish/pull/4270

No functional change
This commit is contained in:
Douglas Matos Gomes 2022-12-08 21:40:07 -03:00 committed by Joost VandeVondele
parent 9d3fd011f1
commit 44ecadee10

View file

@ -1091,7 +1091,7 @@ Value Eval::evaluate(const Position& pos, int* complexity) {
v = std::clamp(v, VALUE_TB_LOSS_IN_MAX_PLY + 1, VALUE_TB_WIN_IN_MAX_PLY - 1);
// When not using NNUE, return classical complexity to caller
if (complexity && (!useNNUE || useClassical))
if (complexity && useClassical)
*complexity = abs(v - psq);
return v;