mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-23 06:41:08 +00:00
Tell the LuaManager the game has started before the player can be teleported
This commit is contained in:
parent
088c20aa6f
commit
e1046dc715
@ -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);
|
||||
|
@ -353,6 +353,8 @@ namespace MWWorld
|
||||
else
|
||||
mGlobalVariables[Globals::sCharGenState].setInteger(-1);
|
||||
|
||||
MWBase::Environment::get().getLuaManager()->newGameStarted();
|
||||
|
||||
if (bypass && !mStartCell.empty())
|
||||
{
|
||||
ESM::Position pos;
|
||||
|
Loading…
x
Reference in New Issue
Block a user