[gnome-nibbles/3-14] Remove the two asserts that crash the most
- From: Bryan Quigley <bryanquigs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-nibbles/3-14] Remove the two asserts that crash the most
- Date: Mon, 22 Sep 2014 22:36:51 +0000 (UTC)
commit 2f038737e602fcacc45052ca95be8cb7a797dddb
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 6242f01..f5cf1a9 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 2ba210e..953207f 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]