[gnome-nibbles] This status code does nothing



commit 8d9f69780f0d31de732f5da151ceebf04a91e1b8
Author: Bryan Quigley <bryanquigs src gnome org>
Date:   Fri May 9 09:29:58 2014 -0400

    This status code does nothing

 src/gnibbles.c |    9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)
---
diff --git a/src/gnibbles.c b/src/gnibbles.c
index c9c2a80..bca64b0 100644
--- a/src/gnibbles.c
+++ b/src/gnibbles.c
@@ -199,7 +199,7 @@ gint
 gnibbles_move_worms (void)
 {
   gint i, j;
-  gint status = 1, nlives = 1;
+  nlives = 1;
   gint *dead;
 
   dead = g_new (gint, properties->numworms);
@@ -233,7 +233,6 @@ gnibbles_move_worms (void)
 
   for (i = 0; i < properties->numworms; i++) {
     dead[i] = !gnibbles_worm_test_move_head (worms[i]);
-    status &= !dead[i];
   }
 
   for (i = 0; i < properties->numworms; i++) {
@@ -270,12 +269,6 @@ gnibbles_move_worms (void)
     }
   }
 
-  if (status & GAMEOVER) {
-    play_sound ("crash");
-    play_sound ("gameover");
-    return GAMEOVER;
-  }
-
   for (i = 0; i < properties->numworms; i++) {
     if (worms[i]->human && worms[i]->lives <= 0)
       return GAMEOVER;


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