1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-22 21: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);
mState = State_Running;
MWBase::Environment::get().getLuaManager()->newGameStarted();
MWBase::Environment::get().getWindowManager()->fadeScreenOut(0);
MWBase::Environment::get().getWindowManager()->fadeScreenIn(1);

View File

@ -353,6 +353,8 @@ namespace MWWorld
else
mGlobalVariables[Globals::sCharGenState].setInteger(-1);
MWBase::Environment::get().getLuaManager()->newGameStarted();
if (bypass && !mStartCell.empty())
{
ESM::Position pos;