From 350a81ee447838156d175b166c5cfd500c844caf Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Wed, 27 Nov 2024 19:27:28 +0100 Subject: [PATCH] fixed setting BD style image color template after changing artwork As each (BD style) level may change the image color template using new colors for game graphics as defined in the level file for this level, new custom artwork (with color template definitions) must always be reloaded before loading the level file (and adjusting the image color template according to the colors defined in the level file). --- src/screens.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/screens.c b/src/screens.c index ed511a59..11a24ddc 100644 --- a/src/screens.c +++ b/src/screens.c @@ -2184,14 +2184,15 @@ void DrawMainMenu(void) if (setup.allow_skipping_levels != STATE_TRUE && level_nr > leveldir_current->handicap_level) level_nr = leveldir_current->handicap_level; + // needed if last screen (level choice) changed graphics, sounds or music + ReloadCustomArtwork(0); + + // level may use image color template, so reload custom artwork before loading level LoadLevel(level_nr); LoadScore(level_nr); SaveLevelSetup_SeriesInfo(); - // needed if last screen (level choice) changed graphics, sounds or music - ReloadCustomArtwork(0); - if (CheckTitleScreen(levelset_has_changed)) { SetGameStatus(GAME_MODE_TITLE); -- 2.34.1