From 6bbed02caa01687a8d55c8ac36ec761a3025db93 Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 18 Apr 2013 20:56:38 +0200 Subject: [PATCH] Do nothing on null moves --- erdslangetjie/__main__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/erdslangetjie/__main__.py b/erdslangetjie/__main__.py index 462d795..d8904ef 100644 --- a/erdslangetjie/__main__.py +++ b/erdslangetjie/__main__.py @@ -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() -- 2.34.1