From: H.G. Muller Date: Sun, 3 Oct 2010 17:58:00 +0000 (+0200) Subject: Make board-size overrule options volatile X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=6dc188524187b768c63f2bf3138c88fc75bc7ff8;p=xboard.git Make board-size overrule options volatile The options -boardWidth, -boardHeight and -holdingSize were legacies from the day choosing a variant would not automatically set a board size. As a result they are seldomly used anymore. The first real application is mini-Shogi (on 5x5 board), and it turned out very annoying if the 5x5 settings persisted to the next session, where you almost certainly want to play another variant. --- diff --git a/args.h b/args.h index f142e1a..083d906 100644 --- a/args.h +++ b/args.h @@ -549,9 +549,9 @@ ArgDescriptor argDescriptors[] = { /* [HGM] board-size, adjudication and misc. options */ { "oneClickMove", ArgBoolean, (void *) &appData.oneClick, TRUE, (ArgIniType) FALSE }, - { "boardWidth", ArgInt, (void *) &appData.NrFiles, TRUE, (ArgIniType) -1 }, - { "boardHeight", ArgInt, (void *) &appData.NrRanks, TRUE, (ArgIniType) -1 }, - { "holdingsSize", ArgInt, (void *) &appData.holdingsSize, TRUE, (ArgIniType) -1 }, + { "boardWidth", ArgInt, (void *) &appData.NrFiles, FALSE, (ArgIniType) -1 }, + { "boardHeight", ArgInt, (void *) &appData.NrRanks, FALSE, (ArgIniType) -1 }, + { "holdingsSize", ArgInt, (void *) &appData.holdingsSize, FALSE, (ArgIniType) -1 }, { "defaultMatchGames", ArgInt, (void *) &appData.defaultMatchGames, TRUE, (ArgIniType) 10 }, { "matchPause", ArgInt, (void *) &appData.matchPause, TRUE, (ArgIniType) 10000 }, { "pieceToCharTable", ArgString, (void *) &appData.pieceToCharTable, FALSE, INVALID },