mirror of
https://github.com/sockspls/badfish
synced 2025-07-11 19:49:14 +00:00
Remove pointless tte->static_value() != VALUE_NONE checks
Now in non-check nodes we are guaranteed to always have static value in TT Entry. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
ba1a44f216
commit
28feb2c6b0
1 changed files with 4 additions and 2 deletions
|
@ -1083,8 +1083,9 @@ namespace {
|
|||
isCheck = pos.is_check();
|
||||
if (!isCheck)
|
||||
{
|
||||
if (tte && tte->static_value() != VALUE_NONE)
|
||||
if (tte)
|
||||
{
|
||||
assert(tte->static_value() != VALUE_NONE);
|
||||
ss->eval = tte->static_value();
|
||||
ei.kingDanger[pos.side_to_move()] = tte->king_danger();
|
||||
}
|
||||
|
@ -1476,8 +1477,9 @@ namespace {
|
|||
}
|
||||
else
|
||||
{
|
||||
if (tte && tte->static_value() != VALUE_NONE)
|
||||
if (tte)
|
||||
{
|
||||
assert(tte->static_value() != VALUE_NONE);
|
||||
ei.kingDanger[pos.side_to_move()] = tte->king_danger();
|
||||
bestValue = tte->static_value();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue