mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-21 17:46:26 +08:00
Make a version of Position::do_move() without the givesCheck parameter
In 10 of 12 calls total to Position::do_move()the givesCheck argument is simply gives_check(m). So it's reasonable to make an overload without this parameter, which wraps the existing version. No functional change.
This commit is contained in:
committed by
Marco Costalba
parent
de269ee18e
commit
e6c2899020
@@ -76,7 +76,7 @@ namespace {
|
||||
while (is >> token && (m = UCI::to_move(pos, token)) != MOVE_NONE)
|
||||
{
|
||||
States->push_back(StateInfo());
|
||||
pos.do_move(m, States->back(), pos.gives_check(m));
|
||||
pos.do_move(m, States->back());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user