From dab09c65b7d1368500aa7c4c0a3d6f18557c1e55 Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Sat, 7 May 2016 12:13:09 +0200 Subject: [PATCH] Fix saving of piece colors as part of theme The wrong condition was used for deciding of whether the piece-color settings were relevant for a theme definition. --- backend.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/backend.c b/backend.c index a67ca7c..58e3f2e 100644 --- a/backend.c +++ b/backend.c @@ -19109,7 +19109,7 @@ LoadTheme () if(appData.trueColors != 2) // 2 is a kludge to suppress this in WinBoard snprintf(buf+strlen(buf), MSG_SIZ-strlen(buf), " -trueColors %s", appData.trueColors ? "true" : "false"); } - if(!appData.pieceDirectory[0] && !appData.trueColors) + if(!appData.pieceDirectory[0] || !appData.trueColors) snprintf(buf+strlen(buf), MSG_SIZ-strlen(buf), " -wpc %s -bpc %s", Col2Text(0), // whitePieceColor Col2Text(1) ); // blackPieceColor -- 1.7.0.4