chiark
/
gitweb
/
~ijackson
/
ypp-sc-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ad4d18
)
routesearch: print highscore tables best first
author
Ian Jackson
<ian@liberator.(none)>
Wed, 14 Oct 2009 20:38:00 +0000
(21:38 +0100)
committer
Ian Jackson
<ian@liberator.(none)>
Wed, 14 Oct 2009 20:38:00 +0000
(21:38 +0100)
yarrg/rsmain.c
patch
|
blob
|
history
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);
- 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;