fixed setting active score entry in hall of fame when changing levels
authorHolger Schemel <info@artsoft.org>
Wed, 16 Mar 2022 16:46:27 +0000 (17:46 +0100)
committerHolger Schemel <info@artsoft.org>
Wed, 16 Mar 2022 16:46:27 +0000 (17:46 +0100)
src/screens.c

index d208c3a464723bd99a245cfb273c156aa8f18a91..3245e4474e97a78c89ab312416431b95784a566c 100644 (file)
@@ -5842,6 +5842,7 @@ static void HandleHallOfFame_SelectLevel(int step, int direction)
     PlaySound(SND_MENU_ITEM_SELECTING);
 
     scores.last_level_nr = level_nr = new_level_nr;
+    scores.last_entry_nr = 0;
 
     LoadLevel(level_nr);
     LoadLocalAndServerScore(level_nr, TRUE);
@@ -5863,8 +5864,6 @@ static void HandleHallOfFame_SelectLevel(int step, int direction)
     }
     else
     {
-      scores.last_entry_nr = 0;
-
       DrawScoreInfo_Content(scores.last_entry_nr);
     }