1
0
Fork 0

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>
sf_2.3.1_base
Marco Costalba 2010-03-09 14:25:07 +01:00
parent 4ef068a506
commit 7ff9678651
1 changed files with 1 additions and 2 deletions

View File

@ -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;