chiark / gitweb /
routesearch: use least specific granu for quickelim
authorIan Jackson <ian@liberator.(none)>
Wed, 14 Oct 2009 20:21:19 +0000 (21:21 +0100)
committerIan Jackson <ian@liberator.(none)>
Wed, 14 Oct 2009 20:21:19 +0000 (21:21 +0100)
yarrg/rssearch.c

index 91bbc22..5ad6136 100644 (file)
@@ -79,8 +79,8 @@ static double process_route(int nports, int totaldist,
       return guess[A];
     }
 
-    if (guess[A] <= highscores[mingranu][A][0].value &&
-       guess[P] <= highscores[mingranu][P][0].value) {
+    if (guess[A] <= highscores[GRANUS-1][A][0].value &&
+       guess[P] <= highscores[GRANUS-1][P][0].value) {
       ctr_routes_quickelim++;
       debugf(" QELIM %f %f\n", guess[A], guess[P]);
       return guess[A];