From: H.G.Muller Date: Mon, 8 Sep 2014 17:06:35 +0000 (+0200) Subject: Limit auto-extending to click on first move of PV X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=9d51fbcf5ae0885f2e4855cc8805f3684dd8e0d9;p=xboard.git Limit auto-extending to click on first move of PV Even when auto-exted on clicks on the tail of a PV will no longer cause any moves to be added to the game. Only clicks on or before the first move can do that now. --- diff --git a/backend.c b/backend.c index 1c4bddc..0ef05b0 100644 --- a/backend.c +++ b/backend.c @@ -5680,7 +5680,7 @@ LoadMultiPV (int x, int y, char *buf, int index, int *start, int *end, int pane) } ParsePV(buf+startPV, FALSE, gameMode != AnalyzeMode); *start = startPV; *end = index-1; - extendGame = (gameMode == AnalyzeMode && appData.autoExtend); + extendGame = (gameMode == AnalyzeMode && appData.autoExtend && origIndex - startPV < 5); return TRUE; }