X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fevaluate.cpp;h=8e6d827eef25f27537cfc4a6e55615e054b03ce6;hp=11a6fa27db5ff24504d0a08ad9adc3f233318f98;hb=29bc1283841c8a935796159c6d3093ec879c246f;hpb=ad2a0e356e395038a08324f9ff0afee7fc98b8e9 diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 11a6fa27..8e6d827e 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -880,7 +880,8 @@ namespace { Trace::add(TOTAL, score); } - return pos.side_to_move() == WHITE ? v : -v; // Side to move point of view + return (pos.side_to_move() == WHITE ? v : -v) // Side to move point of view + + Eval::Tempo; } } // namespace @@ -890,7 +891,7 @@ namespace { /// evaluation of the position from the point of view of the side to move. Value Eval::evaluate(const Position& pos) { - return Evaluation(pos).value() + Eval::Tempo; + return Evaluation(pos).value(); } @@ -904,7 +905,7 @@ std::string Eval::trace(const Position& pos) { Eval::Contempt = SCORE_ZERO; // Reset any dynamic contempt - Value v = Evaluation(pos).value() + Eval::Tempo; + Value v = Evaluation(pos).value(); v = pos.side_to_move() == WHITE ? v : -v; // Trace scores are from white's point of view