diff options
author | Brian <brian@laptop.org> | 2008-07-09 22:07:05 (GMT) |
---|---|---|
committer | Brian <brian@laptop.org> | 2008-07-09 22:07:05 (GMT) |
commit | 95dd414c3d8f15d85a84238a1d747dc2a346a36a (patch) | |
tree | e1a1d7d9fbc713010350c357e8dfaca510e9efa5 /tools.py | |
parent | 67a1e8bd00f0d775f4dcb170367290b62929e34f (diff) |
Fixing tool switching
Diffstat (limited to 'tools.py')
-rw-r--r-- | tools.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -36,9 +36,9 @@ class Tool(object): self.game.setTool("destroy") elif event.key == K_m: self.game.setTool("magicpen") - elif event.type == USEREVENT: - if hasattr(event,"action"): - if self.game.tools.has_key(event.action): self.game.setTool(event.action) + elif event.type == USEREVENT: + if hasattr(event,"action"): + if self.game.tools.has_key(event.action): self.game.setTool(event.action) else: # let the subclasses know that no events were handled yet |