Ignore:
Timestamp:
09/07/13 17:22:15 (8 years ago)
Author:
Stefano Rivera <stefano@…>
Branch:
default
Phase:
public
Rebase:
33376366616437643166663038663766376666303737343233653764306437643433613964383733
Message:

Don't put the starting level in the world, it just creates too much pain

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/game_object.py

    r488 r510  
    390390    def _post_door_event(self, protagonist):
    391391        world = protagonist.world
    392         DoorEvent.post(world.level[0], world.level[1])
     392        if world.level[0]:
     393            DoorEvent.post(world.level[0], world.level[1])
     394        else:
     395            # New game?
     396            super(ContinueGameDoor, self)._post_door_event(protagonist)
    393397
    394398
Note: See TracChangeset for help on using the changeset viewer.