From e2e93519e067f526ff285db53921e900f259ad72 Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 07 Jul 2008 22:11:14 +0000 Subject: (Hopefully) fixed the ghost box while drag+delete... --- 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 -- cgit v0.9.1