From: H.G. Muller Date: Fri, 2 Oct 2009 23:41:12 +0000 (-0700) Subject: fixed loading of saved games via command line X-Git-Tag: v4.4.1.20091019~61 X-Git-Url: http://winboard.nl/cgi-bin?p=xboard.git;a=commitdiff_plain;h=414a2914d0c5fd2ac5ee27f514346716f1b892b2 fixed loading of saved games via command line the variables forwardMostMove and backwardMostMove where set to zero at the wrong place. --- diff --git a/backend.c b/backend.c index 9e70440..6cba815 100644 --- a/backend.c +++ b/backend.c @@ -4557,7 +4557,6 @@ InitPosition(redraw) oldh = gameInfo.holdingsWidth, oldv = gameInfo.variant; - currentMove = forwardMostMove = backwardMostMove = 0; if(appData.icsActive) shuffleOpenings = FALSE; // [HGM] shuffle: in ICS mode, only shuffle on ICS request /* [AS] Initialize pv info list [HGM] and game status */ @@ -8281,6 +8280,7 @@ Reset(redraw, init) gameMode = BeginningOfGame; ModeHighlight(); if(appData.icsActive) gameInfo.variant = VariantNormal; + currentMove = forwardMostMove = backwardMostMove = 0; InitPosition(redraw); for (i = 0; i < MAX_MOVES; i++) { if (commentList[i] != NULL) {