From: Neil Date: Thu, 18 Apr 2013 18:56:38 +0000 (+0200) Subject: Do nothing on null moves X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=6bbed02caa01687a8d55c8ac36ec761a3025db93;p=erdslangetjie.git Do nothing on null moves --- 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()