[gnome-nibbles] Fix worm length after respawn
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-nibbles] Fix worm length after respawn
- Date: Tue, 19 Aug 2014 00:46:14 +0000 (UTC)
commit 77cb0b3348f61255873f1ab1cb5ddb9e813c3bbf
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Sat Jul 19 18:12:18 2014 -0500
Fix worm length after respawn
We accidentally leave a one-space invisible position of death behind our
worm at all times after the worm respawns (for the duration of the
current map). Invisible positions of death are bad so let's get rid of
it.
https://bugzilla.gnome.org/show_bug.cgi?id=733429
src/worm.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/worm.c b/src/worm.c
index 6546e8c..90f52ba 100644
--- a/src/worm.c
+++ b/src/worm.c
@@ -655,7 +655,7 @@ gnibbles_worm_move_head (GnibblesWorm *worm)
void
gnibbles_worm_move_tail (GnibblesWorm *worm)
{
- if (g_list_length (worm->list) <= 1)
+ if (g_list_length (worm->list) < 1)
return;
if (worm->change <= 0) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]