mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 05:07:46 +00:00
Group time management globals initialization
Instead to leave uninitialized or scattered in the code as is the case for ExtraSearchTime. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
+1
-2
@@ -373,6 +373,7 @@ bool think(const Position& pos, bool infinite, bool ponder, int side_to_move,
|
||||
|
||||
// Initialize global search variables
|
||||
StopOnPonderhit = AbortSearch = Quit = AspirationFailLow = false;
|
||||
MaxSearchTime = AbsoluteMaxSearchTime = ExtraSearchTime = 0;
|
||||
NodesSincePoll = 0;
|
||||
TM.resetNodeCounters();
|
||||
SearchStartTime = get_system_time();
|
||||
@@ -647,8 +648,6 @@ namespace {
|
||||
// Initialize iteration
|
||||
Iteration++;
|
||||
BestMoveChangesByIteration[Iteration] = 0;
|
||||
if (Iteration <= 5)
|
||||
ExtraSearchTime = 0;
|
||||
|
||||
cout << "info depth " << Iteration << endl;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user