mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-19 16:46:30 +08:00
Restore startpos_ply_counter() instead of full_moves()
And pass correct currentPly to TimeManager::init(). This restores old behaviour, in particular now black has a different timing than white becuase is no more: currentPly = 2 * fullMoveNumber; but becomes 2 * (fullMoves - 1) + int(sideToMove == BLACK) No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -400,7 +400,7 @@ bool think(Position& pos, const SearchLimits& limits, Move searchMoves[]) {
|
||||
NodesSincePoll = 0;
|
||||
current_search_time(get_system_time());
|
||||
Limits = limits;
|
||||
TimeMgr.init(Limits, pos.full_moves());
|
||||
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