changeset 440:ae0c67788f96

Stop flying by hitting down when on the ground.
author Simon Cross <hodgestar@gmail.com>
date Sat, 09 Apr 2011 19:30:52 +0200
parents 400d68993977
children f3ccb00df6a4
files skaapsteker/sprites/player.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/skaapsteker/sprites/player.py	Sat Apr 09 19:28:50 2011 +0200
+++ b/skaapsteker/sprites/player.py	Sat Apr 09 19:30:52 2011 +0200
@@ -335,6 +335,8 @@
 
     def action_down(self):
         if self.flying:
+            if self.on_solid:
+                self.flying = 0
             return
         elif self._touching_actionables:
             self.invisible = 0