1
0
Fork 0
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:
Joona Kiiski 2010-07-19 18:48:16 +03:00 committed by Marco Costalba
parent ba1a44f216
commit 28feb2c6b0

View file

@ -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();
}