- // use playing time instead of score for Supaplex levels
- if (level.game_engine_type == GAME_ENGINE_TYPE_SP)
- {
- static char score_text[10];
- int time_final_max = 999;
- int time_seconds = scores.entry[nr].time / FRAMES_PER_SECOND;
- int score = scores.entry[nr].score;
+ if (step == 0)
+ first_entry = scores.last_added - (NUM_MENU_ENTRIES_ON_SCREEN + 1) / 2 + 1;
+ else
+ first_entry += step;
+
+ if (first_entry < 0)
+ first_entry = 0;
+ else if (first_entry > MAX_SCORE_ENTRIES - NUM_MENU_ENTRIES_ON_SCREEN)
+ first_entry = MAX(0, MAX_SCORE_ENTRIES - NUM_MENU_ENTRIES_ON_SCREEN);
+
+ return first_entry;
+}