1
0
Fork 0
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:
Marco Costalba 2016-09-29 15:24:36 +02:00
parent b77bae0529
commit eccccba0ce

View file

@ -728,8 +728,7 @@ namespace {
&& ttMove == MOVE_NONE && ttMove == MOVE_NONE
&& eval + razor_margin[depth / ONE_PLY] <= alpha) && eval + razor_margin[depth / ONE_PLY] <= alpha)
{ {
if ( depth <= ONE_PLY if (depth <= ONE_PLY)
&& eval + razor_margin[3] <= alpha)
return qsearch<NonPV, false>(pos, ss, alpha, beta, DEPTH_ZERO); return qsearch<NonPV, false>(pos, ss, alpha, beta, DEPTH_ZERO);
Value ralpha = alpha - razor_margin[depth / ONE_PLY]; Value ralpha = alpha - razor_margin[depth / ONE_PLY];