mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 09:06:45 +08:00
Define OnePly as a Depth enum costant
There is no reason to use a variable for this. Also remove unused DEPTH_ZERO and DEPTH_MAX. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -1897,7 +1897,7 @@ namespace {
|
||||
&& pos.type_of_piece_on(move_to(m)) != PAWN
|
||||
&& pos.see_sign(m) >= 0)
|
||||
{
|
||||
result += OnePly/2;
|
||||
result += OnePly / 2;
|
||||
*dangerous = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user