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 91bbc22cf76bdba7d24ff2ad0529adf8929d1638..5ad6136180fa528ab220c06b8c74ad78771954af 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];