projects
/
erdslangetjie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e93287
)
Do nothing on null moves
author
Neil
<neil@dip.sun.ac.za>
Thu, 18 Apr 2013 18:56:38 +0000
(20:56 +0200)
committer
Neil
<neil@dip.sun.ac.za>
Thu, 18 Apr 2013 18:56:38 +0000
(20:56 +0200)
erdslangetjie/__main__.py
patch
|
blob
|
history
diff --git
a/erdslangetjie/__main__.py
b/erdslangetjie/__main__.py
index 462d79535cd30289ed19eb34a327cf1b6e68182f..d8904ef239f3b3814413490a9480742f749412ac 100644
(file)
--- 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()