Permalink
Browse files

Lame pun

  • Loading branch information...
1 parent 37a20f8 commit f0cb2d73a8f55411b99164686907b5bd30e248a7 @szabba committed Dec 17, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/stage.py
View
@@ -31,7 +31,7 @@ def __init__(self, size, layers, default_layer):
self.__spawns[layer] = []
# To properly render everything we need to keep track of what dies
- self.__dead = set()
+ self.__dirty = set()
def __iter__(self):
"""S.__iter__() <=> iter(S)"""
@@ -78,10 +78,10 @@ def harvest_dead(self):
for i in dead[name]:
- dead_one = self.__layers[name].pop(i)
+ corpse = self.__layers[name].pop(i)
- # Remember which Entities are dead for the sake of rendering
- self.__dead.add(dead_one)
+ # Remember children, corpses aren't to be played with!
+ self.__dirty.add(corpse)
def add_spawn(self, entity, layer=None):
"""S.add_spawn(entity[, layer])
@@ -118,7 +118,7 @@ def render(self, engine, viewport):
# Separate the entities clearly needing a redraw and the ones that
# might need it
- dirty, maybe = self.__dead, set()
+ dirty, maybe = self.__dirty, set()
for entity in self:

0 comments on commit f0cb2d7

Please sign in to comment.