- moved loadshared() to the right point
[supertux.git] / src / title.cpp
index 016b13d..9b1b175 100644 (file)
@@ -46,7 +46,7 @@ static texture_type logo;
 static texture_type img_choose_subset;
 
 static bool walking;
-static timer_type random_timer;
+static Timer random_timer;
 
 static SDL_Event event;
 static SDLKey key;
@@ -146,7 +146,6 @@ bool title(void)
   st_pause_ticks_init();
 
   GameSession session(datadir + "/levels/misc/menu.stl");
-  loadshared();
 
   //FIXME:activate_particle_systems();
 
@@ -389,7 +388,7 @@ void display_credits()
 {
   int done;
   int scroll, speed;
-  timer_type timer;
+  Timer timer;
   int n,d;
   int length;
   FILE* fi;
@@ -502,7 +501,7 @@ void display_credits()
 
       SDL_Delay(35);
 
-      if(timer_get_left(&timer) < 0)
+      if(timer.get_left() < 0)
         {
           frame++;
           timer.start(50);