Add CHANGELEVEL_NOAUTOSAVE flag to ChangeLevel to allow scripted level-switching to bypass autosaving

This commit is contained in:
nashmuhandes 2023-07-16 01:15:25 +08:00 committed by Magnus Norddahl
commit 1dec189146
3 changed files with 7 additions and 1 deletions

View file

@ -1425,6 +1425,10 @@ void FLevelLocals::DoLoadLevel(const FString &nextmapname, int position, bool au
{
flags2 |= LEVEL2_PRERAISEWEAPON;
}
if (changeflags & CHANGELEVEL_NOAUTOSAVE)
{
flags9 |= LEVEL9_NOAUTOSAVEONENTER;
}
maptime = 0;