From: Holger Schemel Date: Sat, 16 Mar 2024 11:57:42 +0000 (+0100) Subject: changed loading level before checking for title screens X-Git-Tag: 4.4.0.0-test-1~182 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=f36facaa50d9c7cbfe56f34f0269bb4b9bdcc1fa;p=rocksndiamonds.git changed loading level before checking for title screens --- 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);