Do nothing on null moves
authorNeil <neil@dip.sun.ac.za>
Thu, 18 Apr 2013 18:56:38 +0000 (20:56 +0200)
committerNeil <neil@dip.sun.ac.za>
Thu, 18 Apr 2013 18:56:38 +0000 (20:56 +0200)
erdslangetjie/__main__.py

index 462d79535cd30289ed19eb34a327cf1b6e68182f..d8904ef239f3b3814413490a9480742f749412ac 100644 (file)
@@ -183,7 +183,9 @@ class GameWindow(RelativeLayout):
     def do_move(self, direction):
         if not self.level_obj:
             return
-        self.player.move(direction, self.level_obj)
+        # Do nothing on null moves
+        if not self.player.move(direction, self.level_obj):
+            return
         self.check_state()
         self.do_nemesis_move()