mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-01-22 09:22:04 +00:00
Add CHANGELEVEL_NOAUTOSAVE flag to ChangeLevel to allow scripted level-switching to bypass autosaving
This commit is contained in:
parent
693ed25414
commit
f3b4c6047e
3 changed files with 7 additions and 1 deletions
|
@ -1437,6 +1437,10 @@ void FLevelLocals::DoLoadLevel(const FString &nextmapname, int position, bool au
|
|||
{
|
||||
flags2 |= LEVEL2_PRERAISEWEAPON;
|
||||
}
|
||||
if (changeflags & CHANGELEVEL_NOAUTOSAVE)
|
||||
{
|
||||
flags9 |= LEVEL9_NOAUTOSAVEONENTER;
|
||||
}
|
||||
|
||||
maptime = 0;
|
||||
|
||||
|
|
|
@ -27,6 +27,7 @@ enum
|
|||
CHANGELEVEL_NOINTERMISSION = 16,
|
||||
CHANGELEVEL_RESETHEALTH = 32,
|
||||
CHANGELEVEL_PRERAISEWEAPON = 64,
|
||||
CHANGELEVEL_NOAUTOSAVE = 128,
|
||||
};
|
||||
|
||||
void G_DoLoadLevel (const FString &MapName, int position, bool autosave, bool newGame);
|
||||
|
|
|
@ -1270,6 +1270,7 @@ enum EChangeLevelFlags
|
|||
CHANGELEVEL_NOINTERMISSION = 16,
|
||||
CHANGELEVEL_RESETHEALTH = 32,
|
||||
CHANGELEVEL_PRERAISEWEAPON = 64,
|
||||
CHANGELEVEL_NOAUTOSAVE = 128,
|
||||
};
|
||||
|
||||
enum ELevelFlags
|
||||
|
|
Loading…
Reference in a new issue