From: H.G. Muller Date: Mon, 11 Feb 2013 13:05:46 +0000 (+0100) Subject: Fix Clear Hash option X-Git-Tag: 4.8S~16 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=c6921012dea09ac75725051259ec211602c58aa2;p=fairymax.git Fix Clear Hash option The Clear Hash option was not properly tested for, and was thus ignored. --- diff --git a/fairymax.c b/fairymax.c index 8b28a6c..cbedcbd 100644 --- a/fairymax.c +++ b/fairymax.c @@ -747,7 +747,7 @@ int main(int argc, char **argv) if(sscanf(line+7, "Ini File=%s", filename) == 1) { inifile = filename; continue; } - if(sscanf(line+7, "Clear Hash") == 1) for(i=0; i<=U; i++) A->K = 0; + if(sscanf(line+7, "Clear Hash%c", &c) == 1) for(i=0; i<=U; i++) A->K = 0; if(sscanf(line+7, "MultiVariation Margin=%d", &margin) == 1) continue; if(sscanf(line+7, "Variant fairy selects=%s", selectedFairy+6) == 1) continue; if(sscanf(line+7, "Cambodian Makruk rules=%d", &Cambodian) == 1) continue;