debugf(" SOMEHOW %d BEST\n",granui);
fildebugf("final %d:%3d mid %d ",finarch,finisle,midarch);
+ int relevant=0;
for (ap=0; ap<AP; ap++) {
HighScoreEntry *scores= highscores[granui][ap];
if (pos>0) {
scores[pos].value= value[ap];
scores[pos].pr= bucket;
+ relevant=1;
}
fildebugf("@%2d", pos);
- }
- }
- }
+ } /* new best */
+ } /* ap */
+ if (!relevant)
+ /* both absolute and perleague are full at this granularity,
+ * so we don't care about anything more granular */
+ granus= granui+1;
+ } /* granui */
fildebugf(" route");