Mercurial > nagslang
diff tools/area_editor.py @ 467:04127e7219cd
More object checks
author | Neil Muller <drnlmuller@gmail.com> |
---|---|
date | Sat, 07 Sep 2013 16:21:03 +0200 |
parents | 1e24145a2860 |
children | 763e1b1233a3 |
line wrap: on
line diff
--- a/tools/area_editor.py Sat Sep 07 16:11:39 2013 +0200 +++ b/tools/area_editor.py Sat Sep 07 16:21:03 2013 +0200 @@ -210,6 +210,11 @@ try: target.append(new) self.reset_objs() + test_surface = pygame.surface.Surface((self.x, self.y)) + # Check for initialisation stuff that happens in render + for thing in self.drawables: + if not isinstance(thing, ne.Enemy): + thing.render(test_surface) return True except Exception as e: target.remove(new)