mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 09:47:46 +00:00
Don't set Search::RootColor in Eval::trace
Search::RootColor is a global parameter set before to start a search, it is not something trace() should change. This patch allows to add trace() calls, for debugging, inside search itself without altering the bench, and also ensures that the values returned by trace() and evaluate() are fully equivalent. No functional change.
This commit is contained in:
@@ -1140,8 +1140,6 @@ Value do_evaluate(const Position& pos, Value& margin) {
|
||||
|
||||
std::string Tracing::do_trace(const Position& pos) {
|
||||
|
||||
Search::RootColor = pos.side_to_move();
|
||||
|
||||
stream.str("");
|
||||
stream << std::showpoint << std::showpos << std::fixed << std::setprecision(2);
|
||||
std::memset(scores, 0, 2 * (TOTAL + 1) * sizeof(Score));
|
||||
|
||||
Reference in New Issue
Block a user