1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-05-01 01:03:09 +00:00

Don't log search info after a stop

Fix an issue where the log file stores an incorrect +0.00
eval after a search has been stopped.

Bug reported by Ajedrecista.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba 2012-01-29 11:25:02 +01:00
parent a492a9dd07
commit 1a1742ac4f

View file

@ -467,7 +467,7 @@ namespace {
if (SkillLevelEnabled && depth == 1 + SkillLevel)
skillBest = do_skill_level();
if (Options["Use Search Log"])
if (!Signals.stop && Options["Use Search Log"])
pv_info_to_log(pos, depth, bestValue, elapsed_time(), &RootMoves[0].pv[0]);
// Filter out startup noise when monitoring best move stability