mirror of
https://github.com/sockspls/badfish
synced 2025-04-29 16:23:09 +00:00
Remove useless razoring condition
Condition is always true! For any value of the array index! Even an out of bound array, like razor_margin[120]!!!! No functional change.
This commit is contained in:
parent
b77bae0529
commit
eccccba0ce
1 changed files with 1 additions and 2 deletions
|
@ -728,8 +728,7 @@ namespace {
|
|||
&& ttMove == MOVE_NONE
|
||||
&& eval + razor_margin[depth / ONE_PLY] <= alpha)
|
||||
{
|
||||
if ( depth <= ONE_PLY
|
||||
&& eval + razor_margin[3] <= alpha)
|
||||
if (depth <= ONE_PLY)
|
||||
return qsearch<NonPV, false>(pos, ss, alpha, beta, DEPTH_ZERO);
|
||||
|
||||
Value ralpha = alpha - razor_margin[depth / ONE_PLY];
|
||||
|
|
Loading…
Add table
Reference in a new issue