[gnome-games] Applying the same animation when switching level



commit 43c6f7a4256f23044c31c9facb332ecdb8462c34
Author: Guillaume Beland <guillaume beland gmail com>
Date:   Sat Aug 22 12:28:19 2009 -0400

    Applying the same animation  when switching level

 gnibbles/main.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/gnibbles/main.c b/gnibbles/main.c
index 6fe4fbe..b4dd73b 100644
--- a/gnibbles/main.c
+++ b/gnibbles/main.c
@@ -620,6 +620,7 @@ main_loop (gpointer data)
 
     add_bonus_id = 0;
 
+    animate_end_game ();
     gnibbles_log_score (window);
 
     return FALSE;
@@ -638,8 +639,8 @@ main_loop (gpointer data)
     add_bonus_id = 0;
 
     animate_end_game ();
-
     gnibbles_log_score (window);
+
     return FALSE;
   }
 
@@ -664,9 +665,10 @@ main_loop (gpointer data)
       main_id = 0;
     }
     add_bonus_id = 0;
-    animate_end_game ();
 
+    animate_end_game ();
     restart_id = g_timeout_add_seconds (1, (GSourceFunc) restart_game, NULL);
+
     return FALSE;
   }
 
@@ -696,6 +698,7 @@ main_loop (gpointer data)
         tmp = rand () % MAXLEVEL + 1;
       current_level = tmp;
     }
+    animate_end_game ();
     restart_id = g_timeout_add_seconds (1, (GSourceFunc) restart_game, NULL);
     return FALSE;
   }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]