Fixed creating level-subset again.
[supertux.git] / src / supertux.cpp
index ce71bc9..750f650 100644 (file)
@@ -46,10 +46,9 @@ int main(int argc, char * argv[])
   st_menu();
   loadshared();
 
-  if (launch_worldmap_mode)
+  if (launch_leveleditor_mode && level_startup_file)
     {
-      WorldMapNS::WorldMap worldmap;
-      worldmap.display();
+    leveleditor(level_startup_file);
     }
   else if (level_startup_file)
     {
@@ -65,6 +64,7 @@ int main(int argc, char * argv[])
   updatescreen();
 
   unloadshared();
+  st_general_free();
   TileManager::destroy_instance();
 #ifdef DEBUG
   Surface::debug_check();