added adjusting some level settings after loading level (not used yet)
authorHolger Schemel <info@artsoft.org>
Sun, 13 Jun 2021 14:52:17 +0000 (16:52 +0200)
committerHolger Schemel <info@artsoft.org>
Sun, 13 Jun 2021 15:05:43 +0000 (17:05 +0200)
src/files.c

index a1901caea52d996c7fb7a5cd58f975d35f102165..8b50f8e2fca4f9270568c072478e509dd682895c 100644 (file)
@@ -6474,6 +6474,10 @@ static void LoadLevel_InitVersion(struct LevelInfo *level)
     level->keep_walkable_ce = TRUE;
 }
 
+static void LoadLevel_InitSettings(struct LevelInfo *level)
+{
+}
+
 static void LoadLevel_InitStandardElements(struct LevelInfo *level)
 {
   int i, x, y;
@@ -6700,6 +6704,7 @@ static void LoadLevelTemplate_LoadAndInit(void)
 
   LoadLevel_InitVersion(&level_template);
   LoadLevel_InitElements(&level_template);
+  LoadLevel_InitSettings(&level_template);
 
   ActivateLevelTemplate();
 }
@@ -6740,6 +6745,7 @@ static void LoadLevel_LoadAndInit(struct NetworkLevelInfo *network_level)
   LoadLevel_InitVersion(&level);
   LoadLevel_InitElements(&level);
   LoadLevel_InitPlayfield(&level);
+  LoadLevel_InitSettings(&level);
 
   LoadLevel_InitNativeEngines(&level);
 }