comparison src/parpg/gamescenecontroller.py @ 138:c9fba51214ed

Fixed bug where the objects of a map where not correctly restored when changing between maps.
author KarstenBock@gmx.net
date Fri, 30 Sep 2011 16:05:26 +0200
parents 140e5e93f026
children 3dddf09377b8
comparison
equal deleted inserted replaced
137:140e5e93f026 138:c9fba51214ed
353 obj.delete() 353 obj.delete()
354 354
355 self.model.loadMap(self.model.target_map_name) 355 self.model.loadMap(self.model.target_map_name)
356 356
357 self.model.setActiveMap(self.model.target_map_name) 357 self.model.setActiveMap(self.model.target_map_name)
358 self.model.readAgentsOfMap(self.model.target_map_name)
359 358
360 self.model.placeAgents(self) 359 self.model.placeAgents(self)
361 self.model.placePC(self) 360 self.model.placePC(self)
362 self.model.map_change = False 361 self.model.map_change = False
363 # The PlayerCharacter has an inventory, and also some 362 # The PlayerCharacter has an inventory, and also some