From 5934fd6ac930700c2bb18eba20f456e470fd14d1 Mon Sep 17 00:00:00 2001 From: nashmuhandes Date: Wed, 19 Jul 2023 23:25:32 +0800 Subject: [PATCH] Fix CHANGELEVEL_NOAUTOSAVE logic --- src/g_level.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/g_level.cpp b/src/g_level.cpp index 909b7e3458..06d32f544d 100644 --- a/src/g_level.cpp +++ b/src/g_level.cpp @@ -1437,10 +1437,6 @@ void FLevelLocals::DoLoadLevel(const FString &nextmapname, int position, bool au { flags2 |= LEVEL2_PRERAISEWEAPON; } - if (changeflags & CHANGELEVEL_NOAUTOSAVE) - { - flags9 |= LEVEL9_NOAUTOSAVEONENTER; - } maptime = 0; @@ -1527,10 +1523,8 @@ void FLevelLocals::DoLoadLevel(const FString &nextmapname, int position, bool au #ifdef UNFRIENDLY_OPTIONS // [Nash] allow modder control of autosaving - if (flags9 & LEVEL9_NOAUTOSAVEONENTER) - { + if (changeflags & CHANGELEVEL_NOAUTOSAVE) autosave = false; - } #endif // [RH] Always save the game when entering a new