[gnome-nibbles/gnome-3-16: 1/2] Remove the two asserts that crash the most



commit 9db05c178fed84eef9c7e31c1b1839c84c5a4ce7
Author: Bryan Quigley <bryanquigs src gnome org>
Date:   Mon Sep 22 18:36:29 2014 -0400

    Remove the two asserts that crash the most

 src/board.c |    4 ++--
 src/worm.c  |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/board.c b/src/board.c
index 479f578..3ab56c4 100644
--- a/src/board.c
+++ b/src/board.c
@@ -455,8 +455,8 @@ gnibbles_board_count_worm_segments_for_worm (GnibblesBoard *board, GnibblesWorm
     }
   }
 
-  if (count > 0)
-    g_assert_cmpint (count, ==, worm->length);
+  //if (count > 0)
+    //g_assert_cmpint (count, ==, worm->length);
 
   return count;
 }
diff --git a/src/worm.c b/src/worm.c
index 164c670..c212783 100644
--- a/src/worm.c
+++ b/src/worm.c
@@ -440,7 +440,7 @@ gnibbles_worm_move_tail_pointer (GnibblesWorm *worm)
     board->walls[worm->xtail][worm->ytail] = worm->number + WORMCHAR;
   }
 
-  g_assert_cmpint (board->walls[worm->xtail][worm->ytail], ==, worm->number + WORMCHAR);
+ // g_assert_cmpint (board->walls[worm->xtail][worm->ytail], ==, worm->number + WORMCHAR);
 }
 
 static void


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