From d4a1a351904401960d699ea5e9de2c5f1a719f69 Mon Sep 17 00:00:00 2001 From: Dominik Roth Date: Fri, 23 Sep 2022 23:11:03 +0200 Subject: [PATCH] Fixed Bug with path_overlay --- columbus/entities.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/columbus/entities.py b/columbus/entities.py index 988c212..6a4808c 100644 --- a/columbus/entities.py +++ b/columbus/entities.py @@ -62,10 +62,10 @@ class Entity(object): self._draw_path() def _draw_path(self): - self.last_pos = self.pos[0], self.pos[1] if self.draw_path and self.last_pos: pygame.draw.line(self.env.path_overlay, self.draw_path_col, (self.last_pos[0]*self.env.width, self.last_pos[1]*self.env.height), (self.pos[0]*self.env.width, self.pos[1]*self.env.height), self.draw_path_width) + self.last_pos = self.pos[0], self.pos[1] def on_collision(self, other, depth): if self.solid and other.solid: