X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fsupertux%2Fgame_manager.cpp;h=1692a84d49dc4f063852b3a24bbc3c406aa0d28b;hb=d27bb6ddfcb9911da9058430497b72a0386b1225;hp=45215d362c4ee46650b03db85345e1f4150ebe0d;hpb=e9ef8ed568b3f7380788339d927fc66609534875;p=supertux.git diff --git a/src/supertux/game_manager.cpp b/src/supertux/game_manager.cpp index 45215d362..1692a84d4 100644 --- a/src/supertux/game_manager.cpp +++ b/src/supertux/game_manager.cpp @@ -54,7 +54,7 @@ GameManager::start_level(std::unique_ptr world, const std::string& level_ std::unique_ptr screen(new LevelsetScreen(m_world->get_basedir(), level_filename, *m_savegame)); - g_screen_manager->push_screen(std::move(screen)); + ScreenManager::current()->push_screen(std::move(screen)); } void @@ -66,7 +66,7 @@ GameManager::start_worldmap(std::unique_ptr world) m_savegame.reset(new Savegame(m_world->get_savegame_filename())); m_savegame->load(); - g_screen_manager->push_screen(std::unique_ptr( + ScreenManager::current()->push_screen(std::unique_ptr( new worldmap::WorldMap(m_world->get_worldmap_filename(), *m_savegame))); }