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 976aa5a29e4d3a1ed81c44945dcb102a3950b293..dd3748f1638d934e0ec03b952e568048639a348a 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;