int num_page_entries = MIN(num_entries, NUM_MENU_ENTRIES_ON_SCREEN);
boolean position_set_by_scrollbar = (dx == 999);
+ if (game_status == GAME_MODE_SCORES)
+ {
+ if (server_scores.updated)
+ {
+ // reload scores, using updated server score cache file
+ LoadLocalAndServerScore(scores.last_level_nr, FALSE);
+
+ server_scores.updated = FALSE;
+
+ if (button != MB_MENU_INITIALIZE)
+ {
+ ti = setHallOfFameActiveEntry(ti_ptr);
+
+ drawChooseTreeScreen(ti);
+ }
+ }
+ }
+
if (button == MB_MENU_INITIALIZE)
{
int num_entries = numTreeInfoInGroup(ti);
if (game_status == GAME_MODE_SCORES)
{
- if (server_scores.updated)
- {
- // reload scores, using updated server score cache file
- LoadLocalAndServerScore(scores.last_level_nr, FALSE);
-
- server_scores.updated = FALSE;
- }
-
ti = setHallOfFameActiveEntry(ti_ptr);
}
else if (ti->cl_first == -1)
}
}
- if (game_status == GAME_MODE_SCORES && server_scores.updated)
- {
- // reload scores, using updated server score cache file
- LoadLocalAndServerScore(scores.last_level_nr, FALSE);
-
- server_scores.updated = FALSE;
-
- ti = setHallOfFameActiveEntry(ti_ptr);
-
- drawChooseTreeScreen(ti);
- }
-
if (game_status == GAME_MODE_SCORES)
PlayMenuSoundIfLoop();
}