chiark / gitweb /
routesearch: print highscore tables best first
authorIan Jackson <ian@liberator.(none)>
Wed, 14 Oct 2009 20:38:00 +0000 (21:38 +0100)
committerIan Jackson <ian@liberator.(none)>
Wed, 14 Oct 2009 20:38:00 +0000 (21:38 +0100)
yarrg/rsmain.c

index 976aa5a..dd3748f 100644 (file)
@@ -169,7 +169,7 @@ int main(int argc, const char **argv) {
        int pos;
        fprintf(output,"============== granui%d ap=%d ==============\n",
                granui, ap);
-       for (pos=0; pos<nhighscores[granui][ap]; pos++) {
+       for (pos=nhighscores[granui][ap]-1; pos>=0; pos--) {
          HighScoreEntry *hs= &highscores[granui][ap][pos];
          PotentialResult *pr= hs->pr;
          if (!pr) continue;