[gnome-games/gnibbles-clutter] More rebust solution for the previously solved warp bug
- From: Guillaume Béland <guillaubel src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-games/gnibbles-clutter] More rebust solution for the previously solved warp bug
- Date: Thu, 27 Aug 2009 20:05:34 +0000 (UTC)
commit e5283f80bdfa0b39a9d45d581c18001c4e1b2a6a
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 96badc8..dc5d502 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]