chiark
/
gitweb
/
~yarrgweb
/
ypp-sc-tools.db-live.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
routesearch: print highscore tables best first
[ypp-sc-tools.db-live.git]
/
yarrg
/
rsmain.c
diff --git
a/yarrg/rsmain.c
b/yarrg/rsmain.c
index 976aa5a29e4d3a1ed81c44945dcb102a3950b293..dd3748f1638d934e0ec03b952e568048639a348a 100644
(file)
--- a/
yarrg/rsmain.c
+++ b/
yarrg/rsmain.c
@@
-169,7
+169,7
@@
int main(int argc, const char **argv) {
int pos;
fprintf(output,"============== granui%d ap=%d ==============\n",
granui, ap);
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;
HighScoreEntry *hs= &highscores[granui][ap][pos];
PotentialResult *pr= hs->pr;
if (!pr) continue;