[gnome-games] More rebust solution for the previously solved warp bug



commit 8ebfdf8657fa2b4b8fa41427078f7cf821d18224
Author: Guillaume Beland <guillaume beland gmail com>
Date:   Thu Aug 27 16:04:40 2009 -0400

    More rebust solution for the previously solved warp bug

 gnibbles/worm.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gnibbles/worm.c b/gnibbles/worm.c
index 53f74c2..b39d1fe 100644
--- a/gnibbles/worm.c
+++ b/gnibbles/worm.c
@@ -455,7 +455,8 @@ gnibbles_worm_move_tail_pointer (GnibblesWorm *worm)
  
   if (board->walls[worm->xtail][worm->ytail] == WARPLETTER) {
     gnibbles_warpmanager_worm_change_tail_pos (warpmanager, worm);
-    //FIXME: this solution is ugly
+    tail_dir = gnibbles_worm_get_tail_direction (worm);
+    board->walls[worm->xtail][worm->ytail] = EMPTYCHAR;
     switch (tail_dir) {
       case WORMRIGHT:
         worm->xtail++;



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