mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-19 16:46:30 +08:00
Retire push_button() and button_was_pressed()
Directly access the underlying bool option. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -425,8 +425,11 @@ bool think(Position& pos, bool infinite, bool ponder, int time[], int increment[
|
||||
|
||||
// Read UCI option values
|
||||
TT.set_size(get_option_value_int("Hash"));
|
||||
if (button_was_pressed("Clear Hash"))
|
||||
if (get_option_value_bool("Clear Hash"))
|
||||
{
|
||||
set_option_value("Clear Hash", "false");
|
||||
TT.clear();
|
||||
}
|
||||
|
||||
CheckExtension[1] = Depth(get_option_value_int("Check Extension (PV nodes)"));
|
||||
CheckExtension[0] = Depth(get_option_value_int("Check Extension (non-PV nodes)"));
|
||||
|
||||
Reference in New Issue
Block a user