Ignore:
Timestamp:
10/31/09 15:11:33 (10 years ago)
Author:
Kaydeth_parpg
Message:

Ticket #73. Patch by Kaydeth. Most of the changes were made to the map loading logic in the Engine, World, and Map classes to make sure it could handle loading maps after the game state has been restored by a load game. Also added a floating door back to both maps so map changing can still be tested in game. fixes[s:trac, t:73]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/game/scripts/objects/actors.py

    r340 r356  
    6868        self.speed = float(TDS.readSetting("PCSpeed")) # TODO: rework/improve 
    6969        self.nextAction = None 
     70        self.agent = None 
    7071         
    7172    def onInstanceActionFinished(self, instance, action): 
     
    9091        """Sets the agent onto the new layer. 
    9192        """ 
    92         self.agent.removeActionListener(self) 
     93        if self.agent is not None: 
     94            self.agent.removeActionListener(self) 
     95             
    9396        self.agent = layer.getInstance(self.parent.ID) 
    9497        self.agent.addActionListener(self) 
Note: See TracChangeset for help on using the changeset viewer.