mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 17:16:33 +08: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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user