Ignore:
Timestamp:
10/23/09 18:13:26 (10 years ago)
Author:
eliedebrauwer
Message:

Ticket #66: Patch by Saritor, This patch implements Kaydeth's camera fix as well as a fix for letting us be able to remove the PC entry on individual map files. However the very first map a player starts the game on will need such an entry. fixes[s:trac, t:66]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/game/scripts/engine.py

    r323 r340  
    4646        self.target_map_name = None 
    4747        self.target_map_file = None 
    48          
    49     def reset(self): 
    50         """Clears the data on a map reload so we don't have objects/npcs from 
    51            other maps hanging around. 
    52            @return: None""" 
    5348 
    5449    def save(self, path, filename): 
     
    260255        self.game_state.current_map_name = map_name 
    261256        self.view.loadMap(map_name, str(map_file)) 
    262         self.view.setActiveMap(map_name) 
    263         self.reset() 
    264          
     257 
    265258        # If the map has been loaded, we might need to add some 
    266259        # agents to the PC and NPS 
     
    275268 
    276269        # create the PC agent 
    277         self.view.active_map.addPC(self.game_state.PC.behaviour.agent) 
     270        self.view.active_map.addPC() 
    278271        self.game_state.PC.start() 
    279272 
Note: See TracChangeset for help on using the changeset viewer.