From f36facaa50d9c7cbfe56f34f0269bb4b9bdcc1fa Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Sat, 16 Mar 2024 12:57:42 +0100 Subject: [PATCH] changed loading level before checking for title screens --- src/screens.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/screens.c b/src/screens.c index f623a7a5..aadbe74d 100644 --- a/src/screens.c +++ b/src/screens.c @@ -1785,6 +1785,15 @@ void DrawMainMenu(void) // store first level of this level set for "level_nr" style animations SetAnimationFirstLevel(leveldir_current->first_level); + // level_nr may have been set to value over handicap with level editor + if (setup.handicap && level_nr > leveldir_current->handicap_level) + level_nr = leveldir_current->handicap_level; + + LoadLevel(level_nr); + LoadScore(level_nr); + + SaveLevelSetup_SeriesInfo(); + // needed if last screen (level choice) changed graphics, sounds or music ReloadCustomArtwork(0); @@ -1810,15 +1819,6 @@ void DrawMainMenu(void) SetDrawtoField(DRAW_TO_BACKBUFFER); - // level_nr may have been set to value over handicap with level editor - if (setup.handicap && level_nr > leveldir_current->handicap_level) - level_nr = leveldir_current->handicap_level; - - LoadLevel(level_nr); - LoadScore(level_nr); - - SaveLevelSetup_SeriesInfo(); - // set this after "ChangeViewportPropertiesIfNeeded()" (which may reset it) SetDrawDeactivationMask(REDRAW_NONE); SetDrawBackgroundMask(REDRAW_FIELD); -- 2.34.1