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:
parent
9d3fd011f1
commit
44ecadee10
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue