Do fading for Contrib Worldmaps, as well.
authorRicardo Cruz <rick2@aeiou.pt>
Tue, 19 Oct 2004 16:25:51 +0000 (16:25 +0000)
committerRicardo Cruz <rick2@aeiou.pt>
Tue, 19 Oct 2004 16:25:51 +0000 (16:25 +0000)
SVN-Revision: 2032

src/gameloop.cpp
src/title.cpp

index 6fa7836..e339cbb 100644 (file)
@@ -970,12 +970,11 @@ bool process_load_game_menu()
 
       if (access(slotfile.c_str(), F_OK) != 0)
         {
+          shrink_fade(Vector(screen->w/2,screen->h/2), 600);
           draw_intro();
         }
 
-      // shrink_fade(Point((screen->w/2),(screen->h/2)), 1000);
       fadeout(256);
-
       DrawingContext context;
       context.draw_text(white_text, "Loading...",
                         Vector(screen->w/2, screen->h/2), CENTER_ALLIGN, LAYER_FOREGROUND1);
index fe63a48..a821de8 100644 (file)
@@ -161,6 +161,13 @@ void check_levels_contrib_menu()
 
     std::string map_filename = *it;
 
+    // some fading
+    fadeout(256);
+    DrawingContext context;
+      context.draw_text(white_text, "Loading...",
+                        Vector(screen->w/2, screen->h/2), CENTER_ALLIGN, LAYER_FOREGROUND1);
+      context.do_drawing();
+
     worldmap.set_map_filename(map_filename);
 
     // hack to erase the extension