Renamed GameManager::start_game() to GameManager::start_worldmap()
authorIngo Ruhnke <grumbel@gmail.com>
Wed, 13 Aug 2014 21:35:20 +0000 (23:35 +0200)
committerIngo Ruhnke <grumbel@gmail.com>
Thu, 14 Aug 2014 00:59:02 +0000 (02:59 +0200)
src/supertux/game_manager.cpp
src/supertux/game_manager.hpp
src/supertux/menu/contrib_menu.cpp
src/supertux/menu/main_menu.cpp

index c3ca5a1..2546e94 100644 (file)
@@ -56,7 +56,7 @@ GameManager::start_level(std::unique_ptr<World> world, const std::string& level_
 }
 
 void
-GameManager::start_game(std::unique_ptr<World> world)
+GameManager::start_worldmap(std::unique_ptr<World> world)
 {
   try
   {
index d5a9b39..7a66b0e 100644 (file)
@@ -34,7 +34,7 @@ public:
   GameManager();
   ~GameManager();
 
-  void start_game(std::unique_ptr<World> world);
+  void start_worldmap(std::unique_ptr<World> world);
   void start_level(std::unique_ptr<World> world, const std::string& level_filename);
 
   std::string get_level_name(const std::string& levelfile) const;
index f2536ac..d4ae767 100644 (file)
@@ -144,7 +144,7 @@ ContribMenu::check_menu()
     std::unique_ptr<World> world = World::load(m_contrib_worlds[index]->get_basedir());
     if (!world->is_levelset())
     {
-      GameManager::current()->start_game(std::move(world));
+      GameManager::current()->start_worldmap(std::move(world));
     }
     else
     {
index dd4195a..a93ff54 100644 (file)
@@ -58,7 +58,7 @@ MainMenu::check_menu()
     case MNID_STARTGAME:
       {
         std::unique_ptr<World> world = World::load("levels/world1");
-        GameManager::current()->start_game(std::move(world));
+        GameManager::current()->start_worldmap(std::move(world));
       }
       break;