X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fscreens.c;h=d257060fa732cd0b937dd3b03fe17d12b7978e1f;hb=9842447719201593c7fdbd50cbb8ee48d370cc59;hp=fb3aabc2cc8476e5f385859f4ecfc851fc6df572;hpb=943e766434e3043be25c8c11f5aa968304f5164f;p=rocksndiamonds.git diff --git a/src/screens.c b/src/screens.c index fb3aabc2..d257060f 100644 --- a/src/screens.c +++ b/src/screens.c @@ -2172,7 +2172,7 @@ void HandleMainMenu(int mx, int my, int dx, int dy, int button) SetGameStatus(GAME_MODE_SCORES); - DrawHallOfFame(level_nr, -1); + DrawHallOfFame(level_nr); } else if (pos == MAIN_CONTROL_EDITOR) { @@ -5029,7 +5029,7 @@ void HandleChooseLevelNr(int mx, int my, int dx, int dy, int button) HandleChooseTree(mx, my, dx, dy, button, &level_number_current); } -void DrawHallOfFame(int level_nr, int highlight_position) +void DrawHallOfFame(int level_nr) { int fade_mask = REDRAW_FIELD; @@ -5046,17 +5046,13 @@ void DrawHallOfFame(int level_nr, int highlight_position) SetDrawDeactivationMask(REDRAW_NONE); SetDrawBackgroundMask(REDRAW_FIELD); - if (highlight_position < 0) + if (scores.last_added < 0) LoadScore(level_nr); else SetAnimStatus(GAME_MODE_PSEUDO_SCORESNEW); LoadServerScore(level_nr); - // correct highlight position after adding server scores - if (highlight_position >= 0) - highlight_position = scores.last_added; - FadeSetEnterScreen(); FadeOut(fade_mask); @@ -5068,7 +5064,7 @@ void DrawHallOfFame(int level_nr, int highlight_position) OpenDoor(GetDoorState() | DOOR_NO_DELAY | DOOR_FORCE_REDRAW); - HandleHallOfFame(level_nr, highlight_position, 0, 0, MB_MENU_INITIALIZE); + HandleHallOfFame(level_nr, scores.last_added, 0, 0, MB_MENU_INITIALIZE); DrawMaskedBorder(fade_mask);