[gnome-games/gnibbles-clutter] Removed debug-related code



commit 2da9dd3f7661dff7d588e0414fc2cb2127541ac8
Author: Guillaume Beland <guillaume beland gmail com>
Date:   Thu Aug 27 15:17:16 2009 -0400

    Removed debug-related code

 gnibbles/board.c    |    6 ++----
 gnibbles/gnibbles.c |    6 +-----
 gnibbles/worm.c     |   15 +--------------
 3 files changed, 4 insertions(+), 23 deletions(-)
---
diff --git a/gnibbles/board.c b/gnibbles/board.c
index e4405da..59618cf 100644
--- a/gnibbles/board.c
+++ b/gnibbles/board.c
@@ -230,8 +230,7 @@ gnibbles_board_level_new (GnibblesBoard *board, gint level)
 
   if ((in = fopen (filename, "r")) == NULL) {
     char *message =
-      g_strdup_printf (_
-                        ("Nibbles couldn't load level file:\n%s\n\n"
+      g_strdup_printf (_("Nibbles couldn't load level file:\n%s\n\n"
                         "Please check your Nibbles installation"), filename);
     gnibbles_error (message);
     g_free (message);
@@ -250,8 +249,7 @@ gnibbles_board_level_new (GnibblesBoard *board, gint level)
   for (i = 0; i < BOARDHEIGHT; i++) {
     if (!fgets (tmpboard, sizeof (tmpboard), in)) {
       char *message =
-        g_strdup_printf (_
-                         ("Level file appears to be damaged:\n%s\n\n"
+        g_strdup_printf (_("Level file appears to be damaged:\n%s\n\n"
                          "Please check your Nibbles installation"), filename);
       gnibbles_error (message);
       g_free (message);
diff --git a/gnibbles/gnibbles.c b/gnibbles/gnibbles.c
index e10702c..759f3a7 100644
--- a/gnibbles/gnibbles.c
+++ b/gnibbles/gnibbles.c
@@ -255,11 +255,7 @@ gnibbles_move_worms (void)
       }
     }
   }
-/*
-  printf ("head: (%d,%d) \t tail: (%d,%d) \n", 
-          worms[0]->xhead, worms[0]->yhead,
-          worms[0]->xtail, worms[0]->ytail);
-*/
+
   for (i = 0; i < properties->numworms; i++) {
     dead[i] = !gnibbles_worm_test_move_head (worms[i]);
     status &= !dead[i];
diff --git a/gnibbles/worm.c b/gnibbles/worm.c
index dbf2f63..96badc8 100644
--- a/gnibbles/worm.c
+++ b/gnibbles/worm.c
@@ -587,20 +587,7 @@ gnibbles_worm_reset (GnibblesWorm *worm)
   gnibbles_worm_animate_death (worm);
 
   gint i,j;
-/*
-  FILE *fo;
-  fo = fopen ("output.txt", "w");
-  for (i = 0; i < BOARDHEIGHT; i++) {
-    for (j = 0; j < BOARDWIDTH; j++) {
-      if (board->walls[j][i] == EMPTYCHAR)
-        fprintf (fo, "%c", ' ');
-      else
-        fprintf (fo, "%c", board->walls[j][i]);
-    }
-    fprintf (fo, "\n");
-  }
-  fclose (fo);
-*/
+
   for (i = 0; i < BOARDHEIGHT; i++)
     for (j = 0; j < BOARDWIDTH; j++)
       if (board->walls[j][i] == WORMCHAR + worm->number)



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