[gnome-games/gnibbles-clutter] Fixed one more silly mistake regarding worm head & tail
- From: Guillaume Béland <guillaubel src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-games/gnibbles-clutter] Fixed one more silly mistake regarding worm head & tail
- Date: Mon, 22 Jun 2009 15:50:13 -0400 (EDT)
commit cdaaa14f32367c4f9ecf5a59edbdf0a3e44073f6
Author: Guillaume Beland <guillaume beland gmail com>
Date: Mon Jun 22 15:47:51 2009 -0400
Fixed one more silly mistake regarding worm head & tail
gnibbles/worm-clutter.c | 12 ++++--------
1 files changed, 4 insertions(+), 8 deletions(-)
---
diff --git a/gnibbles/worm-clutter.c b/gnibbles/worm-clutter.c
index b843b86..798de59 100644
--- a/gnibbles/worm-clutter.c
+++ b/gnibbles/worm-clutter.c
@@ -369,7 +369,7 @@ gnibbles_cworm_move_tail (GnibblesCWorm *worm)
properties->tilesize);
clutter_actor_set_position (CLUTTER_ACTOR (tail),
x - properties->tilesize, y);
- worm->xtail--;
+ worm->xtail++;
break;
case WORMDOWN:
clutter_actor_set_size (CLUTTER_ACTOR (tail),
@@ -377,23 +377,19 @@ gnibbles_cworm_move_tail (GnibblesCWorm *worm)
size * properties->tilesize);
clutter_actor_set_position (CLUTTER_ACTOR (tail),
x, y + properties->tilesize);
- worm->ytail--;
+ worm->ytail++;
break;
case WORMLEFT:
clutter_actor_set_size (CLUTTER_ACTOR (tail),
properties->tilesize * size,
properties->tilesize);
- //clutter_actor_set_position (CLUTTER_ACTOR (tail),
- // x - properties->tilesize, y);
- worm->xtail++;
+ worm->xtail--;
break;
case WORMUP:
clutter_actor_set_size (CLUTTER_ACTOR (tail),
properties->tilesize,
properties->tilesize * size);
- //clutter_actor_set_position (CLUTTER_ACTOR (tail),
- // x, y - properties->tilesize);
- worm->ytail++;
+ worm->ytail--;
break;
default:
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]