[gnome-games/gnibbles-clutter-rebased: 28/129] Fixed one more silly mistake regarding worm head & tail



commit 5079ad6ac0a1a41ffea5a206fbd65597d9c17ba2
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 fe08987..609a584 100644
--- a/gnibbles/worm-clutter.c
+++ b/gnibbles/worm-clutter.c
@@ -427,7 +427,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), 
@@ -435,23 +435,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]