mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-16 15:29:55 +00:00
Merge branch 'passivestorage' into 'master'
Activate global storage when setting up the player See merge request OpenMW/openmw!4413
This commit is contained in:
commit
cdf7bd74d5
3 changed files with 3 additions and 2 deletions
|
@ -373,7 +373,6 @@ namespace MWLua
|
||||||
mGlobalScripts.addAutoStartedScripts();
|
mGlobalScripts.addAutoStartedScripts();
|
||||||
mGlobalScriptsStarted = true;
|
mGlobalScriptsStarted = true;
|
||||||
mNewGameStarted = true;
|
mNewGameStarted = true;
|
||||||
mMenuScripts.stateChanged();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void LuaManager::gameLoaded()
|
void LuaManager::gameLoaded()
|
||||||
|
|
|
@ -178,7 +178,7 @@ void MWState::StateManager::newGame(bool bypass)
|
||||||
MWBase::Environment::get().getWorld()->startNewGame(bypass);
|
MWBase::Environment::get().getWorld()->startNewGame(bypass);
|
||||||
|
|
||||||
mState = State_Running;
|
mState = State_Running;
|
||||||
MWBase::Environment::get().getLuaManager()->newGameStarted();
|
MWBase::Environment::get().getLuaManager()->gameLoaded();
|
||||||
|
|
||||||
MWBase::Environment::get().getWindowManager()->fadeScreenOut(0);
|
MWBase::Environment::get().getWindowManager()->fadeScreenOut(0);
|
||||||
MWBase::Environment::get().getWindowManager()->fadeScreenIn(1);
|
MWBase::Environment::get().getWindowManager()->fadeScreenIn(1);
|
||||||
|
|
|
@ -352,6 +352,8 @@ namespace MWWorld
|
||||||
else
|
else
|
||||||
mGlobalVariables[Globals::sCharGenState].setInteger(-1);
|
mGlobalVariables[Globals::sCharGenState].setInteger(-1);
|
||||||
|
|
||||||
|
MWBase::Environment::get().getLuaManager()->newGameStarted();
|
||||||
|
|
||||||
if (bypass && !mStartCell.empty())
|
if (bypass && !mStartCell.empty())
|
||||||
{
|
{
|
||||||
ESM::Position pos;
|
ESM::Position pos;
|
||||||
|
|
Loading…
Reference in a new issue