1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-24 18:39:59 +00:00

Call the WindowManager::updatePlayer after the startup script is run

This commit is contained in:
scrawl 2017-04-21 00:51:13 +02:00
parent 1ffb9e1bf3
commit c2240e3af1

View File

@ -222,8 +222,6 @@ namespace MWWorld
renderPlayer();
mRendering->resetCamera();
MWBase::Environment::get().getWindowManager()->updatePlayer();
// we don't want old weather to persist on a new game
// Note that if reset later, the initial ChangeWeather that the chargen script calls will be lost.
delete mWeatherManager;
@ -283,6 +281,8 @@ namespace MWWorld
if (!mStartupScript.empty())
MWBase::Environment::get().getWindowManager()->executeInConsole(mStartupScript);
MWBase::Environment::get().getWindowManager()->updatePlayer();
}
void World::clear()