Fix CHANGELEVEL_NOAUTOSAVE logic

This commit is contained in:
nashmuhandes 2023-07-19 23:25:32 +08:00 committed by Magnus Norddahl
commit 24de63f23f

View file

@ -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)