diff --git a/apps/openmw/engine.cpp b/apps/openmw/engine.cpp index 2a0bcb108..81fb2e6a7 100644 --- a/apps/openmw/engine.cpp +++ b/apps/openmw/engine.cpp @@ -526,7 +526,6 @@ void OMW::Engine::prepareEngine (Settings::Manager & settings) window->setStore(mEnvironment.getWorld()->getStore()); window->initUI(); - window->renderWorldMap(); //Load translation data mTranslationDataStorage.setEncoder(mEncoder); diff --git a/apps/openmw/mwgui/windowmanagerimp.cpp b/apps/openmw/mwgui/windowmanagerimp.cpp index 9238e5cfd..cb5450988 100644 --- a/apps/openmw/mwgui/windowmanagerimp.cpp +++ b/apps/openmw/mwgui/windowmanagerimp.cpp @@ -289,6 +289,7 @@ namespace MWGui mMenu = new MainMenu(w, h, mResourceSystem->getVFS(), mVersionDescription); mLocalMapRender = new MWRender::LocalMap(mViewer->getSceneData()->asGroup()); mMap = new MapWindow(mCustomMarkers, mDragAndDrop, mLocalMapRender, mWorkQueue); + mMap->renderGlobalMap(); trackWindow(mMap, "map"); mStatsWindow = new StatsWindow(mDragAndDrop); trackWindow(mStatsWindow, "stats"); @@ -374,11 +375,6 @@ namespace MWGui MWBase::Environment::get().getInputManager()->changeInputMode(false); } - void WindowManager::renderWorldMap() - { - mMap->renderGlobalMap(); - } - void WindowManager::setNewGame(bool newgame) { // This method will always be called after loading a savegame or starting a new game diff --git a/apps/openmw/mwgui/windowmanagerimp.hpp b/apps/openmw/mwgui/windowmanagerimp.hpp index a8f6263c2..b1948c1f7 100644 --- a/apps/openmw/mwgui/windowmanagerimp.hpp +++ b/apps/openmw/mwgui/windowmanagerimp.hpp @@ -137,7 +137,6 @@ namespace MWGui void setStore (const MWWorld::ESMStore& store); void initUI(); - void renderWorldMap(); virtual Loading::Listener* getLoadingScreen();