From 8878a33c6cd954e995782fc87f501227ab4bac4d Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Tue, 11 Aug 2015 14:17:10 +0200 Subject: fix viruses being not drawn oar spitfire pls --- gui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui.py b/gui.py index fdc587b..f09e9df 100644 --- a/gui.py +++ b/gui.py @@ -205,7 +205,7 @@ def draw_frame(): cells = sorted(cells, key = lambda x: x.mass) viruses = list(filter(lambda x: x.is_virus, c.world.cells.values())) - viruses = sorted(cells, key = lambda x: x.mass) + viruses = sorted(viruses, key = lambda x: x.mass) for cell in food: draw_cell(cell) -- cgit v1.2.3