diff mamba/sprites.py @ 252:8198492745b1

Try not to let head wander during teleporting (it's bad for your health).
author Simon Cross <hodgestar@gmail.com>
date Thu, 15 Sep 2011 01:21:49 +0200
parents cb68024bdd35
children 2a969e3445ae
line wrap: on
line diff
--- a/mamba/sprites.py	Thu Sep 15 00:59:06 2011 +0200
+++ b/mamba/sprites.py	Thu Sep 15 01:21:49 2011 +0200
@@ -236,7 +236,7 @@
         head = world.snake.head
         if segment is head and head.orientation == self.direction:
             other = world.get_sprite(self.other_id)
-            head.shift_tile((other.tile_pos, self.direction))
+            head.shift_tile_and_pixels((other.tile_pos, self.direction))
 
 
 class PuddleSprite(SingleImageTileSprite):