summaryrefslogtreecommitdiff
path: root/gui.py
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2015-08-11 14:17:10 +0200
committerFlorian Jung <flo@windfisch.org>2015-08-11 14:17:10 +0200
commit8878a33c6cd954e995782fc87f501227ab4bac4d (patch)
treeedaec9c26e383ad5884aef60312a395f33d62514 /gui.py
parent38bf13ffb7412335dc127aeab693fe6b85c64063 (diff)
fix viruses being not drawn
oar spitfire pls
Diffstat (limited to 'gui.py')
-rw-r--r--gui.py2
1 files changed, 1 insertions, 1 deletions
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)