mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-19 16:46:30 +08:00
Don't update gamePly after each move
We just need startup value to calculate available thinking time. So remove from state. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -393,7 +393,7 @@ bool think(Position& pos, const SearchLimits& limits, Move searchMoves[]) {
|
||||
NodesSincePoll = 0;
|
||||
current_search_time(get_system_time());
|
||||
Limits = limits;
|
||||
TimeMgr.init(Limits, pos.game_ply());
|
||||
TimeMgr.init(Limits, pos.startpos_ply_counter());
|
||||
|
||||
// Set output steram in normal or chess960 mode
|
||||
cout << set960(pos.is_chess960());
|
||||
|
||||
Reference in New Issue
Block a user