From a19dec65d96e033a4703c5503878e0bdfd7bba45 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sun, 30 Sep 2012 22:16:14 +0200 Subject: [PATCH] Fix broken -ics and -cp options The patch to specify engines and ICS by nickame broke the use of the regular options to do this, because they could also reset them. Now this is fixed by only setting them (through |= in stead of =). --- args.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/args.h b/args.h index cb817c3..2d8b7aa 100644 --- a/args.h +++ b/args.h @@ -1289,8 +1289,8 @@ InitAppData(char *lpCmdLine) if(appData.viewer && appData.viewerOptions[0]) ParseArgsFromString(appData.viewerOptions); if(appData.tourney && appData.tourneyOptions[0]) ParseArgsFromString(appData.tourneyOptions); - chessProgram = GetEngineLine(firstEngineLine, 0) || GetEngineLine(secondEngineLine, 1); - appData.icsActive = GetEngineLine(icsNick, 10); + chessProgram |= GetEngineLine(firstEngineLine, 0) || GetEngineLine(secondEngineLine, 1); + appData.icsActive |= GetEngineLine(icsNick, 10); /* [HGM] make sure board size is acceptable */ if(appData.NrFiles > BOARD_FILES || -- 1.7.0.4