tag 358240 patch
thanks (control in bcc)

Here is what I plan to apply upstream. Expect a new release shortly to fix
this.

Bye, Mt.
Index: xbubble.c
===================================================================
RCS file: /cvsroot/xbubble/xbubble/src/xbubble.c,v
retrieving revision 1.2
diff -u -r1.2 xbubble.c
--- xbubble.c   27 Apr 2005 14:43:23 -0000      1.2
+++ xbubble.c   21 Mar 2006 23:23:41 -0000
@@ -80,7 +80,8 @@
   Game game;
 
   ruleset.max_fire_delay = handicap[0];
-  for ( i = 0; again && i < nb_levels; won && i++ ) {    
+  i=0;
+  while (again && i < nb_levels) {
     game = new_game( SINGLE_PLAYER, &ruleset, levels[i], i+1, 
                     score, NORMAL );
     
@@ -88,6 +89,7 @@
     won = ( result == PLAYER1_WON );
     again = ( result != ABORTED );
     delete_game( game, again && ( !won || ( i+1 < nb_levels )));
+    if (won) i++;
   }
   if ( won )
     printf(_("CONGRATULATIONS !!!\n"));

Attachment: signature.asc
Description: Digital signature

Reply via email to