changeset 431:b753ea36909e

Fix the bug Anna found.
author Jeremy Thurgood <firxen@gmail.com>
date Sat, 09 Apr 2011 18:46:28 +0200
parents 25efc74ac19c
children e65f6783a9f7
files skaapsteker/sprites/player.py
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/skaapsteker/sprites/player.py	Sat Apr 09 18:40:25 2011 +0200
+++ b/skaapsteker/sprites/player.py	Sat Apr 09 18:46:28 2011 +0200
@@ -290,11 +290,11 @@
         """Transform the fox"""
         if not self.on_solid:
             return
-        if 'shapeshift' not in self.the_world.fox.tails:
+        if 'shapeshift' not in self._me.tails:
             return
         if self.shape == 'fox':
             # Become human
-            if self.the_world.fox.has_fan:
+            if self._me.has_fan:
                 self.shape = 'human_with_fan'
             else:
                 self.shape = 'human'
@@ -303,10 +303,10 @@
         # Check the transformation is feasible
         if self.set_image():
             # Transformation succeeded
-            self.the_world.fox.shape = self.shape
+            self._me.shape = self.shape
         else:
             # Back out of transformation
-            self.shape = self.the_world.fox.shape
+            self.shape = self._me.shape
 
     def action_right(self):
         if self.facing != 'right':
@@ -564,5 +564,6 @@
         fan.remove()
         self._me.has_fan = True
         self.shape = 'human_with_fan'
+        self._me.shape = self.shape
         self.set_image()