added special level file flag to force using BD engine (experimental)
authorHolger Schemel <info@artsoft.org>
Sun, 11 Feb 2024 13:53:02 +0000 (14:53 +0100)
committerHolger Schemel <info@artsoft.org>
Sun, 18 Feb 2024 14:57:43 +0000 (15:57 +0100)
src/files.c

index 6944fbaf266f3e84116c84de19f4243c646d1bd6..a81a3f060eb5fb6c779404a29da9c2e9f1569326 100644 (file)
@@ -6563,6 +6563,9 @@ static void LoadLevelFromFileInfo(struct LevelInfo *level,
   if (level->no_valid_file)
     setLevelInfoToDefaults(level, level_info_only, FALSE);
 
+  if (check_special_flags("use_native_bd_game_engine"))
+    level->game_engine_type = GAME_ENGINE_TYPE_BD;
+
   if (level->game_engine_type == GAME_ENGINE_TYPE_UNKNOWN)
     level->game_engine_type = GAME_ENGINE_TYPE_RND;