Only set UCI_Variant to 'chess' when that is in the list
authorH.G.Muller <hgm@hgm-xboard.(none)>
Wed, 12 Jun 2019 12:13:58 +0000 (14:13 +0200)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Wed, 12 Jun 2019 12:13:58 +0000 (14:13 +0200)
commit0a8d9bfaffb18163ada4cdae64e833c2baff678f
tree89dd979cbf5ea9ecf50d211940f7e59197e31197
parent2b89c348f426dd08e009fb5f26f8c8c54dc94f88
Only set UCI_Variant to 'chess' when that is in the list

CECP specs have it that after 'new' the variant should revert to 'normal'
Chess, and only after the 'variant' command switch to the selected variant.
But not all engines support Chess, and when they explicitly state they
do not (by omitting it from the UCI_Variant choices), it would be pretty
silly to sent it to them. A 'variant' command must follow 'new' in that
case anyway.
UCI2WB.c