[Xbubble-commits] xbubble/src xbubble.c,1.2,1.3
Martin Quinson
mquinson at alioth.debian.org
Tue Mar 21 23:30:19 UTC 2006
Update of /cvsroot/xbubble/xbubble/src
In directory haydn:/tmp/cvs-serv30133
Modified Files:
xbubble.c
Log Message:
Allow to compile on gcc 4.1 (ie, cleanup the code)
Index: xbubble.c
===================================================================
RCS file: /cvsroot/xbubble/xbubble/src/xbubble.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- xbubble.c 27 Apr 2005 14:43:23 -0000 1.2
+++ xbubble.c 21 Mar 2006 23:30:16 -0000 1.3
@@ -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"));
More information about the Xbubble-commits
mailing list