diff options
author | Gary Martin <gary@garycmartin.com> | 2009-08-22 19:39:48 (GMT) |
---|---|---|
committer | Gary Martin <gary@garycmartin.com> | 2009-08-22 19:39:48 (GMT) |
commit | 33457b19030f5534c89b2f0d871d430f071cb1db (patch) | |
tree | 282340d2fb0598dd783d49c727e5a18d41e68e7d | |
parent | baa524eb64673c568b8423acaa85bc7cf52485c7 (diff) |
Remove redundant code.
-rw-r--r-- | tools.py | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -243,9 +243,7 @@ class MagicPenTool(Tool): elif event.type == MOUSEBUTTONUP and event.button == 1: if self.vertices and self.safe: self.game.world.add.complexPoly(self.vertices, dynamic=True, density=1.0, restitution=0.16, friction=0.5) - self.vertices = None - else: - self.vertices = None + self.vertices = None elif event.type == MOUSEMOTION and self.vertices: self.vertices.append(event.pos) if distance(event.pos,self.vertices[0]) >= 55 and len(self.vertices) > 3: |