Fixed the fade func problem. Just a simple mistake.
authorRicardo Cruz <rick2@aeiou.pt>
Fri, 28 May 2004 18:32:58 +0000 (18:32 +0000)
committerRicardo Cruz <rick2@aeiou.pt>
Fri, 28 May 2004 18:32:58 +0000 (18:32 +0000)
Also applied fade when choosing a slot.

SVN-Revision: 1350

src/intro.cpp
src/screen.cpp
src/setup.cpp
src/worldmap.cpp

index c6e6002..991c77f 100644 (file)
@@ -35,7 +35,6 @@
 
 void draw_intro()
 {
-shrink_fade(Point((screen->w/2),(screen->h/2)), 2000);
 display_text_file("intro.txt", "/images/background/arctis.jpg", SCROLL_SPEED_MESSAGE);
 }
 
index 61d51fc..8dfe18b 100644 (file)
@@ -150,8 +150,8 @@ float down_inc  = ((float)screen->h - point.y) / ((float)fade_time / LOOP_DELAY)
 
 float left_cor = 0, right_cor = 0, up_cor = 0, down_cor = 0;
 
-while(left_cor < screen->w - point.x && right_cor < screen->w - point.x &&
-      up_cor < screen->h - point.y && down_cor < screen->h - point.y)
+while(left_cor < point.x && right_cor < screen->w - point.x &&
+      up_cor < point.y && down_cor < screen->h - point.y)
   {
   left_cor  += left_inc;
   right_cor += right_inc;
index b431d43..82c34c9 100644 (file)
@@ -505,6 +505,7 @@ bool process_load_game_menu()
           draw_intro();
         }
 
+      shrink_fade(Point((screen->w/2),(screen->h/2)), 2000);
       fadeout();
       WorldMapNS::WorldMap worldmap;
      
index 0de8a82..1132edd 100644 (file)
@@ -642,7 +642,7 @@ WorldMap::update(float delta)
 
               std::cout << "Enter the current level: " << level->name << std::endl;
               // do a shriking fade to the level
-              shrink_fade(Point((level->x*32 + 16 + offset.x),(level->y*32 + 16 + offset.y)), 3000);
+              shrink_fade(Point((level->x*32 + 16 + offset.x),(level->y*32 + 16 + offset.y)), 2000);
               GameSession session(datadir +  "/levels/" + level->name,
                                   1, ST_GL_LOAD_LEVEL_FILE);