Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tools.py
diff options
context:
space:
mode:
authorGary Martin <gary@garycmartin.com>2009-08-22 19:39:48 (GMT)
committer Gary Martin <gary@garycmartin.com>2009-08-22 19:39:48 (GMT)
commit33457b19030f5534c89b2f0d871d430f071cb1db (patch)
tree282340d2fb0598dd783d49c727e5a18d41e68e7d /tools.py
parentbaa524eb64673c568b8423acaa85bc7cf52485c7 (diff)
Remove redundant code.
Diffstat (limited to 'tools.py')
-rw-r--r--tools.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/tools.py b/tools.py
index 4b10d99..71fef08 100644
--- a/tools.py
+++ b/tools.py
@@ -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: