Changeset 467:04127e7219cd


Ignore:
Timestamp:
09/07/13 14:21:03 (8 years ago)
Author:
Neil Muller <drnlmuller@…>
Branch:
default
Children:
468:149fbde0e692, 469:82db70c28722
Phase:
public
Rebase:
61313835326435633534343062636135663366343033346531636262656332663336616335653336
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.