static void DrawHallOfFame_setScoreEntries(void)
{
- int num_visible_score_entries = NUM_MENU_ENTRIES_ON_SCREEN - 1;
+ int max_empty_entries = 10; // at least show "top ten" list, if empty
+ int max_visible_entries = NUM_MENU_ENTRIES_ON_SCREEN - 1; // w/o back link
+ int min_score_entries = MIN(max_empty_entries, max_visible_entries);
int score_pos = (scores.last_added >= 0 ? scores.last_added : 0);
int i;
// do not add empty score entries if off-screen
if (scores.entry[i].score == 0 &&
scores.entry[i].time == 0 &&
- i >= num_visible_score_entries)
+ i >= min_score_entries)
break;
TreeInfo *ti = newTreeInfo_setDefaults(TREE_TYPE_SCORE_ENTRY);