From 661af819ffcb9a684a17a76622a02a33d4550f23 Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Sat, 3 Oct 2020 12:17:30 +0200 Subject: [PATCH] Fix PV conversion to SAN during pondering Converting ponder PVs to SAN did not work when the ponder move was given through a Hint command, rather than prefixed to the PV is parentheses. Also, during TwoMachines mode, the conversion was not invoked at all during pondering (as PV handling is done by another code section in that case). --- backend.c | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/backend.c b/backend.c index b564b17..6cdd48e 100644 --- a/backend.c +++ b/backend.c @@ -5815,13 +5815,13 @@ LoadMultiPV (int x, int y, char *buf, int index, int *start, int *end, int pane) } char * -PvToSAN (char *pv) +PvToSAN (char *pv, int engine) { static char buf[10*MSG_SIZ]; int i, k=0, savedEnd=endPV, saveFMM = forwardMostMove; *buf = NULLCHAR; if(forwardMostMove < endPV) PushInner(forwardMostMove, endPV); // shelve PV of PV-walk - ParsePV(pv, FALSE, 2, 0); // this appends PV to game, suppressing any display of it + ParsePV(pv, FALSE, 2, engine+1); // this appends PV to game, suppressing any display of it for(i = forwardMostMove; i