chiark / gitweb /
routesearch: print highscore tables best first
[ypp-sc-tools.main.git] / 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;