From: H.G.Muller Date: Sat, 3 Oct 2020 10:17:30 +0000 (+0200) Subject: Fix PV conversion to SAN during pondering X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=661af819ffcb9a684a17a76622a02a33d4550f23;p=xboard.git 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). --- 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