From: Marco Costalba Date: Wed, 26 Mar 2014 06:06:29 +0000 (+0100) Subject: Fix a bug in pawns eval tracing X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=c7cf45241cd264104c02a4e717c447f5231a284a Fix a bug in pawns eval tracing Instead of totals we were showing white and black values. Spotted by Sven Schüle No functional change. --- diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 57bbfe09..99e9f047 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -961,8 +961,8 @@ Value do_evaluate(const Position& pos) { switch (idx) { case PST: case IMBALANCE: case PAWN: case TOTAL: ss << std::setw(20) << name << " | --- --- | --- --- | " - << std::setw(6) << to_cp(mg_value(wScore)) << " " - << std::setw(6) << to_cp(eg_value(wScore)) << " \n"; + << std::setw(6) << to_cp(mg_value(wScore - bScore)) << " " + << std::setw(6) << to_cp(eg_value(wScore - bScore)) << " \n"; break; default: ss << std::setw(20) << name << " | " << std::noshowpos