added setting color type and colors for editor after loading level
authorHolger Schemel <holger.schemel@virtion.de>
Tue, 31 Dec 2024 15:33:33 +0000 (16:33 +0100)
committerHolger Schemel <holger.schemel@virtion.de>
Tue, 31 Dec 2024 15:33:54 +0000 (16:33 +0100)
src/files.c

index c103b940eb8a3efac13764732066393536370559..ac46c7adc36da4a06b79e2884d5f271651b3079b 100644 (file)
@@ -7911,6 +7911,10 @@ static void LoadLevel_InitSettings(struct LevelInfo *level)
        leveldir_current->force_level_name))
     snprintf(level->name, MAX_LEVEL_NAME_LEN + 1,
             leveldir_current->empty_level_name, level_nr);
+
+  // set default color type and colors for BD style level colors
+  SetDefaultLevelColorType_BD();
+  SetDefaultLevelColors_BD();
 }
 
 static void LoadLevel_InitStandardElements(struct LevelInfo *level)