mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-22 20:21:26 +00:00
Fix CHANGELEVEL_NOAUTOSAVE logic
This commit is contained in:
parent
01a6dafe6a
commit
5934fd6ac9
1 changed files with 1 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue