Add MAPINFO NoAutoSaveOnEnter - this fully disables autosaves when a map is just entered (ignoring the user's autosave preference).

This commit is contained in:
nashmuhandes 2023-07-15 22:03:58 +08:00 committed by Magnus Norddahl
commit 044279960c
4 changed files with 9 additions and 0 deletions

View file

@ -1509,6 +1509,12 @@ void FLevelLocals::DoLoadLevel(const FString &nextmapname, int position, bool au
DoDeferedScripts (); // [RH] Do script actions that were triggered on another map.
// [Nash] allow modder control of autosaving
if (flags9 & LEVEL9_NOAUTOSAVEONENTER)
{
autosave = false;
}
// [RH] Always save the game when entering a new
if (autosave && !savegamerestore && disableautosave < 1)
{