mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-06 10:53:50 +08:00
remove non-functional else
since we break out of the loop in the other branch closes https://github.com/official-stockfish/Stockfish/pull/6116 no functional change
This commit is contained in:
committed by
Joost VandeVondele
parent
9ac756695e
commit
5337edfdb6
@@ -1380,8 +1380,7 @@ moves_loop: // When in check, search starts here
|
||||
assert(value >= beta); // Fail high
|
||||
break;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
// Reduce other moves if we have found at least one score improvement
|
||||
if (depth > 2 && depth < 16 && !is_decisive(value))
|
||||
depth -= 2;
|
||||
@@ -1390,7 +1389,6 @@ moves_loop: // When in check, search starts here
|
||||
alpha = value; // Update alpha! Always alpha < beta
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// If the move is worse than some previously searched move,
|
||||
// remember it, to update its stats later.
|
||||
|
||||
Reference in New Issue
Block a user