Mercurial > mamba
changeset 386:d760a309d0bf
Whoops, only check the head
author | Stefano Rivera <stefano@rivera.za.net> |
---|---|
date | Sat, 17 Sep 2011 01:39:30 +0200 |
parents | 80ba03bec6ad |
children | f86188a0f259 |
files | mamba/sprites.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mamba/sprites.py Sat Sep 17 01:35:02 2011 +0200 +++ b/mamba/sprites.py Sat Sep 17 01:39:30 2011 +0200 @@ -205,7 +205,8 @@ DOWN: LEFT}[self.direction]) def interact(self, world, segment): - world.snake.force_new_direction(self.direction) + if segment.is_head: + world.snake.force_new_direction(self.direction) super(ArrowSprite, self).interact(world, segment)