X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=backend.c;h=847b6092bd1cb911c70224a825aed714217148c0;hb=7ea58805958618de5217dc5d20e93e5d7bd05e96;hp=193ab427a9efb50307bf014389af22ce7cba731e;hpb=88b2dc39c46dc1a447b9f5691d81b7354c92e53a;p=xboard.git diff --git a/backend.c b/backend.c index 193ab42..847b609 100644 --- a/backend.c +++ b/backend.c @@ -13302,7 +13302,7 @@ ReplaceComment(index, text) if(index && sscanf(text, "%f/%d", &score, &len) == 2 && pvInfoList[index-1].depth == len && - pvInfoList[index-1].score == (int) (score*100 + 0.5) && + fabs(pvInfoList[index-1].score - score*100.) < 0.5 && (p = strchr(text, '\n'))) text = p; // [HGM] strip off first line with PV info, if any while (*text == '\n') text++; len = strlen(text);