mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-17 01:10:10 +00:00
Don't trigger onStateChanged until the game is in a running state
This commit is contained in:
parent
e1046dc715
commit
cee373aea8
@ -373,7 +373,6 @@ namespace MWLua
|
||||
mGlobalScripts.addAutoStartedScripts();
|
||||
mGlobalScriptsStarted = true;
|
||||
mNewGameStarted = true;
|
||||
mMenuScripts.stateChanged();
|
||||
}
|
||||
|
||||
void LuaManager::gameLoaded()
|
||||
|
@ -178,6 +178,7 @@ void MWState::StateManager::newGame(bool bypass)
|
||||
MWBase::Environment::get().getWorld()->startNewGame(bypass);
|
||||
|
||||
mState = State_Running;
|
||||
MWBase::Environment::get().getLuaManager()->gameLoaded();
|
||||
|
||||
MWBase::Environment::get().getWindowManager()->fadeScreenOut(0);
|
||||
MWBase::Environment::get().getWindowManager()->fadeScreenIn(1);
|
||||
|
Loading…
Reference in New Issue
Block a user