X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=winboard%2Fwsettings.c;h=6fc5c40682a7f677319e72d6271504a1e407ec18;hb=f29ff21f23c2a22fc55e14ba48c53d704c22289d;hp=bfad5880333ffdf3041a080621d17ff504dbc370;hpb=2f683926dad74c7ff34c56718f0074548a4695de;p=xboard.git diff --git a/winboard/wsettings.c b/winboard/wsettings.c index bfad588..6fc5c40 100644 --- a/winboard/wsettings.c +++ b/winboard/wsettings.c @@ -694,6 +694,7 @@ char *tfName; int MatchOK() { if(autoinc) appData.loadGameIndex = appData.loadPositionIndex = -(twice + 1); + if(!appData.loadGameFile[0]) appData.loadGameIndex = -2*twice; // kludge to pass value of "twice" for use in GUI book if(swiss) { appData.defaultMatchGames = 1; appData.tourneyType = -1; } if(CreateTourney(tfName) && !matchMode) { // CreateTourney reloads original settings if file already existed MatchEvent(2); @@ -771,7 +772,7 @@ void TourneyPopup(HWND hwnd) NamesToList(firstChessProgramNames, engineList, engineMnemonic); comboCallback = &AddToTourney; autoinc = appData.loadGameIndex < 0 || appData.loadPositionIndex < 0; - twice = TRUE; swiss = appData.tourneyType < 0; + twice = FALSE; swiss = appData.tourneyType < 0; while(engineList[n]) n++; tourneyOptions[3].max = n-1; snprintf(title, MSG_SIZ, _("Tournament and Match Options")); ASSIGN(tfName, appData.tourneyFile[0] ? appData.tourneyFile : MakeName(appData.defName));