# HG changeset patch # User Neil Muller # Date 1378563663 -7200 # Node ID 04127e7219cd5e2786148e5321e39c019b0b6983 # Parent f66e88d449a7a5121d64af7c667d718b203e306e More object checks diff -r f66e88d449a7 -r 04127e7219cd tools/area_editor.py --- 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)