1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-23 15:40:42 +00:00

Tell the LuaManager the game has started before the player can be teleported

This commit is contained in:
Evil Eye 2024-10-19 19:15:23 +02:00
parent 088c20aa6f
commit e1046dc715
2 changed files with 2 additions and 1 deletions

View File

@ -178,7 +178,6 @@ 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().getWindowManager()->fadeScreenOut(0); MWBase::Environment::get().getWindowManager()->fadeScreenOut(0);
MWBase::Environment::get().getWindowManager()->fadeScreenIn(1); MWBase::Environment::get().getWindowManager()->fadeScreenIn(1);

View File

@ -353,6 +353,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;