From 517122a05a381578e89f9bfc95681fb0ad071a11 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 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend.c b/backend.c index a67ca7ce..58e3f2e3 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 -- 2.17.1