From: H.G.Muller <hgm@hgm-xboard.(none)>
Date: Sat, 7 May 2016 10:13:09 +0000 (+0200)
Subject: Fix saving of piece colors as part of theme
X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=dab09c65b7d1368500aa7c4c0a3d6f18557c1e55;p=xboard.git

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.
---

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