From e946eab7f34bda5aa1bb329d23490a0d724f1ce1 Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Mon, 29 Feb 2016 22:54:44 +0100 Subject: [PATCH] Print score with same sign in message and engine output There are two options that affect the score POV (always or analysis only), but they were only working on the score in the Engine Output window, and not in the message field of the board window. Now they work for both. --- backend.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/backend.c b/backend.c index 7243ee7..f231bc0 100644 --- a/backend.c +++ b/backend.c @@ -9766,6 +9766,7 @@ FakeBookMove: // [HGM] book: we jump here to simulate machine moves after book h [AS] Protect the thinkOutput buffer from overflow... this is only useful if buf1 hasn't overflowed first! */ + if((gameMode == AnalyzeMode && appData.whitePOV || appData.scoreWhite) && !WhiteOnMove(forwardMostMove)) curscore *= -1; if(curscore >= MATE_SCORE) snprintf(score_buf, MSG_SIZ, "#%d", curscore - MATE_SCORE); else if(curscore <= -MATE_SCORE) -- 1.7.0.4