fix sound check for gate sound
authorNeil <neil@dip.sun.ac.za>
Fri, 19 Apr 2013 11:23:04 +0000 (13:23 +0200)
committerNeil <neil@dip.sun.ac.za>
Fri, 19 Apr 2013 11:23:04 +0000 (13:23 +0200)
erdslangetjie/player.py

index 44d5a7dba9e0a60cd2e549028e61ca988c12d8fb..841b5097b0f938121059b55625e3bf255bc9918a 100644 (file)
@@ -63,7 +63,7 @@ class Nemesis(FigureSprite):
         for cand in neighbours:
             if level.is_gate(cand) and level.blocked(cand):
                 level.damage_gate(cand)
-                if self._config.getdefault('bane', 'sound', False):
+                if self._config.getdefault('bane', 'sound', '0') != '0':
                     self._bend.play()
                 return
         # check for dead-ends