Obey -firstFeatures option at startup
authorH.G.Muller <hgm@hgm-xboard.(none)>
Wed, 23 Nov 2016 14:13:40 +0000 (15:13 +0100)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Fri, 13 Jan 2017 15:39:23 +0000 (16:39 +0100)
The -firstFeatures, which are supposed to overrule features of the first
engine, were ignored when this engine was loaded at startup.

backend.c

index 776f751..b5eb581 100644 (file)
--- a/backend.c
+++ b/backend.c
@@ -1600,6 +1600,7 @@ InitBackEnd3 P((void))
     char buf[MSG_SIZ];
     int err, len;
 
+    ParseFeatures(appData.features[0], &first);
     if(!appData.icsActive && !appData.noChessProgram && !appData.matchMode &&                         // mode involves only first engine
        !strcmp(appData.variant, "normal") &&                                                          // no explicit variant request
         appData.NrRanks == -1 && appData.NrFiles == -1 && appData.holdingsSize == -1 &&               // no size overrides requested