From 24de63f23f9992d38a84491240852f77c9b9cfaf 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 d910d8cb5..dd645d6cc 100644 --- a/src/g_level.cpp +++ b/src/g_level.cpp @@ -1425,10 +1425,6 @@ void FLevelLocals::DoLoadLevel(const FString &nextmapname, int position, bool au { flags2 |= LEVEL2_PRERAISEWEAPON; } - if (changeflags & CHANGELEVEL_NOAUTOSAVE) - { - flags9 |= LEVEL9_NOAUTOSAVEONENTER; - } maptime = 0; @@ -1514,10 +1510,8 @@ void FLevelLocals::DoLoadLevel(const FString &nextmapname, int position, bool au // [Nash] allow modder control of autosaving - if (flags9 & LEVEL9_NOAUTOSAVEONENTER) - { + if (changeflags & CHANGELEVEL_NOAUTOSAVE) autosave = false; - } // [RH] Always save the game when entering a new if (autosave && !savegamerestore && disableautosave < 1)