From 383c7e9c2226083975f045b9798afb5b9cf9a6c7 Mon Sep 17 00:00:00 2001 From: ketmar Date: Fri, 27 Sep 2013 11:19:06 +0300 Subject: [PATCH] drop strokes with score < 2 --- src/sdltest.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sdltest.c b/src/sdltest.c index e933906..90ad77e 100644 --- a/src/sdltest.c +++ b/src/sdltest.c @@ -356,6 +356,7 @@ static void main_loop (void) { double score; char buf[128]; curstkname = genglib_find_match(&stklib, &stk, &score); + if (curstkname != NULL && score < 2.0) curstkname = NULL; if (curstkname != NULL) { snprintf(buf, sizeof(buf), "%s: score=%.15g", curstkname, score); } else { -- 2.11.4.GIT