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,15 +1380,13 @@ moves_loop: // When in check, search starts here
|
|||||||
assert(value >= beta); // Fail high
|
assert(value >= beta); // Fail high
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
// Reduce other moves if we have found at least one score improvement
|
|
||||||
if (depth > 2 && depth < 16 && !is_decisive(value))
|
|
||||||
depth -= 2;
|
|
||||||
|
|
||||||
assert(depth > 0);
|
// Reduce other moves if we have found at least one score improvement
|
||||||
alpha = value; // Update alpha! Always alpha < beta
|
if (depth > 2 && depth < 16 && !is_decisive(value))
|
||||||
}
|
depth -= 2;
|
||||||
|
|
||||||
|
assert(depth > 0);
|
||||||
|
alpha = value; // Update alpha! Always alpha < beta
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user