diff --git a/scripts/_00e_mqp01_functions.pex b/scripts/_00e_mqp01_functions.pex index 42c9e288..358892d1 100644 Binary files a/scripts/_00e_mqp01_functions.pex and b/scripts/_00e_mqp01_functions.pex differ diff --git a/scripts/enderallib.pex b/scripts/enderallib.pex index 579ad243..934566d5 100644 Binary files a/scripts/enderallib.pex and b/scripts/enderallib.pex differ diff --git a/source/scripts/_00e_mqp01_functions.psc b/source/scripts/_00e_mqp01_functions.psc index 1d4011b2..7dc73e15 100644 --- a/source/scripts/_00e_mqp01_functions.psc +++ b/source/scripts/_00e_mqp01_functions.psc @@ -20,6 +20,13 @@ Function SetUpScene() MQP01_DreamDoorREF.BlockActivation(True) Wait(5.0) Game.EnablePlayerControls() + + if EnderalLib.NewGameCount() > 1 + Game.QuitToMainMenu() + Debug.MessageBox("Due to an engine bug, new game should not be started after quitting to the main menu. Please, restart Enderal first.") + return + endif + Game.DisablePlayerControls(false, true, true, false, true, false, false) Wait(1.0) _00E_MQP01_Thoughts01.ShowAsHelpMessage("Empty", 5, 1, 1) diff --git a/source/scripts/enderallib.psc b/source/scripts/enderallib.psc index 76a2424d..5feba6de 100644 --- a/source/scripts/enderallib.psc +++ b/source/scripts/enderallib.psc @@ -4,6 +4,8 @@ float function calculateContentStrength(ObjectReference container) native global Potion function CreatePotion(MagicEffect[] effects, float[] magnitudes, int[] areas, int[] durations, int arraySize) native global +int function NewGameCount() native global + bool function IsDLLLoaded() global return (SKSE.GetPluginVersion("fs_skse_functions") != -1) endfunction