comparison gamescenecontroller.py @ 108:81b51b9d861e

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 100a39fa64a2
children 26e65f27dbd7
comparison
equal deleted inserted replaced
107:100a39fa64a2 108:81b51b9d861e
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