From 2a2f49d76ce2e969995290e2178b19ce92a467ff Mon Sep 17 00:00:00 2001 From: Fabian Greffrath Date: Mon, 6 Jan 2025 12:51:10 +0100 Subject: [PATCH] check for DV_NONE, do not apply comp options if not MBF21 --- src/g_compatibility.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/g_compatibility.c b/src/g_compatibility.c index 8dcd4cfe9..ccfc86313 100644 --- a/src/g_compatibility.c +++ b/src/g_compatibility.c @@ -128,6 +128,7 @@ void G_ParseCompDatabase(void) continue; } + record.complevel = DV_NONE; const char *complevel = JS_GetStringValue(level, "complevel"); if (complevel) { @@ -234,17 +235,17 @@ void G_ApplyLevelCompatibility(int lump) restore_comp = true; demo_version_t new_demover = record->complevel; - if (demo_version != new_demover) + if (new_demover != DV_NONE && demo_version != new_demover) { demo_version = new_demover; G_ReloadDefaults(true); I_Printf(VB_INFO, "Automatically setting compatibility level \"%s\"", G_GetCurrentComplevelName()); + } - if (demo_compatibility) - { - return; - } + if (!mbf21) + { + return; } option_t *option;