Changeset 467:04127e7219cd


Ignore:
Timestamp:
Sep 7, 2013, 2:21:03 PM (7 years ago)
Author:
Neil Muller <drnlmuller@…>
Branch:
default
Children:
468:149fbde0e692, 469:82db70c28722
rebase_source:
a1852d5c5440bca5f3f4034e1cbbec2f36ac5e36
Message:

More object checks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/area_editor.py

    r465 r467  
    211211            target.append(new)
    212212            self.reset_objs()
     213            test_surface = pygame.surface.Surface((self.x, self.y))
     214            # Check for initialisation stuff that happens in render
     215            for thing in self.drawables:
     216                if not isinstance(thing, ne.Enemy):
     217                    thing.render(test_surface)
    213218            return True
    214219        except Exception as e:
Note: See TracChangeset for help on using the changeset viewer.