mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-21 01:27:16 +08:00
Simplify tte use condition
No functional change.
This commit is contained in:
committed by
Marco Costalba
parent
e654209211
commit
8d1c1074d5
@@ -609,8 +609,7 @@ namespace {
|
|||||||
|
|
||||||
// Can ttValue be used as a better position evaluation?
|
// Can ttValue be used as a better position evaluation?
|
||||||
if (ttValue != VALUE_NONE)
|
if (ttValue != VALUE_NONE)
|
||||||
if ( ((tte->bound() & BOUND_LOWER) && ttValue > eval)
|
if (tte->bound() & (ttValue > eval ? BOUND_LOWER : BOUND_UPPER))
|
||||||
|| ((tte->bound() & BOUND_UPPER) && ttValue < eval))
|
|
||||||
eval = ttValue;
|
eval = ttValue;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user