prevent fp when move gives direct check | bench 1847720

This commit is contained in:
rektdie committed 2026-03-20 13:48:58 +01:00
1 parent 83c9a2c51c
commit 9885596770
3 files changed
+47 -2

No files matched your search

+1 -1
View File
@@ -561,7 +561,7 @@ SearchResults PVS(Board& board, int depth, int alpha, int beta, int ply, SearchC
int margin = fpMargin * (lmrDepth + improving) + historyScore / 32;
if (!isPV && ply && currMove.IsQuiet()
&& lmrDepth <= 5 && staticEval + margin < alpha && notMated) {
&& lmrDepth <= 5 && staticEval + margin < alpha && notMated && !board.GivesDirectCheck(currMove)) {
continue;
}