gcompris r3348 - branches/gcomprixogoo/src/gcompris



Author: bcoudoin
Date: Tue Mar 25 00:29:01 2008
New Revision: 3348
URL: http://svn.gnome.org/viewvc/gcompris?rev=3348&view=rev

Log:
bonus_end now loops to first level instead of existing the activity


Modified:
   branches/gcomprixogoo/src/gcompris/bonus.c

Modified: branches/gcomprixogoo/src/gcompris/bonus.c
==============================================================================
--- branches/gcomprixogoo/src/gcompris/bonus.c	(original)
+++ branches/gcomprixogoo/src/gcompris/bonus.c	Tue Mar 25 00:29:01 2008
@@ -100,10 +100,13 @@
 
   gc_bar_hide(FALSE);
 
-  // go back to previous board layout
-  if (gc_board_get_current_board_plugin()->end_board)
-    gc_board_get_current_board_plugin()->end_board();
-  gc_board_end();
+  // go back to the first level
+  GcomprisBoard *gcomprisBoard = gc_board_get_current();
+  gcomprisBoard->level = 1;
+  gcomprisBoard->sublevel = 0;
+
+  /* Re-Start the board */
+  gc_board_pause(FALSE);
 }
 /* ==================================== */
 #define OFFSET 100



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