mirror of
https://github.com/sockspls/badfish
synced 2025-04-29 16:23:09 +00:00
Drop completely illogical ei.kingDanger == 0 requirement
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
226bd54064
commit
1afbe1a1d7
1 changed files with 1 additions and 1 deletions
|
@ -1482,7 +1482,7 @@ namespace {
|
|||
if (bestValue >= beta)
|
||||
{
|
||||
// Store the score to avoid a future costly evaluation() call
|
||||
if (!isCheck && !tte && ei.kingDanger[pos.side_to_move()] == 0)
|
||||
if (!isCheck && !tte)
|
||||
TT.store(pos.get_key(), value_to_tt(bestValue, ply), VALUE_TYPE_LOWER, Depth(-127*OnePly), MOVE_NONE, ss[ply].eval, ei.kingDanger[pos.side_to_move()]);
|
||||
|
||||
return bestValue;
|
||||
|
|
Loading…
Add table
Reference in a new issue