1
0
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:
Evil Eye 2024-10-20 10:50:18 +02:00
parent e1046dc715
commit cee373aea8
2 changed files with 1 additions and 1 deletions

View File

@ -373,7 +373,6 @@ namespace MWLua
mGlobalScripts.addAutoStartedScripts();
mGlobalScriptsStarted = true;
mNewGameStarted = true;
mMenuScripts.stateChanged();
}
void LuaManager::gameLoaded()

View File

@ -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);