- moved loadshared() to the right point
authorIngo Ruhnke <grumbel@gmx.de>
Sun, 11 Apr 2004 17:04:03 +0000 (17:04 +0000)
committerIngo Ruhnke <grumbel@gmx.de>
Sun, 11 Apr 2004 17:04:03 +0000 (17:04 +0000)
SVN-Revision: 483

src/supertux.cpp

index b4da511..79638a0 100644 (file)
@@ -25,6 +25,7 @@ int main(int argc, char * argv[])
   st_joystick_setup();
   st_general_setup();
   st_menu();
+  loadshared();
 
   if (launch_worldmap_mode)
     {
@@ -40,15 +41,14 @@ int main(int argc, char * argv[])
       done = false;
       while (!done)
         {
-          loadshared();
           done = title();
-          unloadshared();
         }
     }
   
   clearscreen(0, 0, 0);
   updatescreen();
 
+  unloadshared();
   st_shutdown();
   
   return 0;