From 6dc188524187b768c63f2bf3138c88fc75bc7ff8 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sun, 3 Oct 2010 19:58:00 +0200 Subject: [PATCH] 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. --- args.h | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) 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 }, -- 1.7.0.4