Fix CHANGELEVEL_NOAUTOSAVE logic

This commit is contained in:
nashmuhandes 2023-07-19 23:25:32 +08:00 committed by Christoph Oelckers
parent 01a6dafe6a
commit 5934fd6ac9

View file

@ -1437,10 +1437,6 @@ void FLevelLocals::DoLoadLevel(const FString &nextmapname, int position, bool au
{ {
flags2 |= LEVEL2_PRERAISEWEAPON; flags2 |= LEVEL2_PRERAISEWEAPON;
} }
if (changeflags & CHANGELEVEL_NOAUTOSAVE)
{
flags9 |= LEVEL9_NOAUTOSAVEONENTER;
}
maptime = 0; maptime = 0;
@ -1527,10 +1523,8 @@ void FLevelLocals::DoLoadLevel(const FString &nextmapname, int position, bool au
#ifdef UNFRIENDLY_OPTIONS #ifdef UNFRIENDLY_OPTIONS
// [Nash] allow modder control of autosaving // [Nash] allow modder control of autosaving
if (flags9 & LEVEL9_NOAUTOSAVEONENTER) if (changeflags & CHANGELEVEL_NOAUTOSAVE)
{
autosave = false; autosave = false;
}
#endif #endif
// [RH] Always save the game when entering a new // [RH] Always save the game when entering a new