Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/activity.py
diff options
context:
space:
mode:
authorAlex <alex@Tiresias.(none)>2008-07-07 22:11:14 (GMT)
committer Alex <alex@Tiresias.(none)>2008-07-07 22:11:14 (GMT)
commite2e93519e067f526ff285db53921e900f259ad72 (patch)
tree8a2cb8afcbd72e7fb977884890824ee710b963d3 /activity.py
parent3cc4321a5be8406a91ba30a0f606dff1d1c56bc5 (diff)
(Hopefully) fixed the ghost box while drag+delete...
Diffstat (limited to 'activity.py')
-rw-r--r--activity.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/activity.py b/activity.py
index 9bfebd4..a64014a 100644
--- a/activity.py
+++ b/activity.py
@@ -291,8 +291,8 @@ class DestroyTool(Tool):
def draw(self):
# draw the trail
if self.vertices:
- for i in range(len(self.vertices)-1):
- pygame.draw.line(screen,(255,0,0),self.vertices[i],self.vertices[i+1],3)
+ if len(self.vertices) > 1:
+ pygame.draw.lines(screen,(255,0,0),False,self.vertices,3)
def cancel(self):
self.vertices = None