comparison src/parpg/gamemodel.py @ 155:7214224b8d83

Fixed that items in the player characters inventory could not be dropped.
author KarstenBock@gmx.net
date Fri, 07 Oct 2011 14:15:06 +0200
parents 6e1eb964a6e5
children db6403c1a7a1
comparison
equal deleted inserted replaced
154:b96607c8be7f 155:7214224b8d83
499 if agent == "PlayerCharacter": 499 if agent == "PlayerCharacter":
500 continue 500 continue
501 if self.active_map.agent_layer.getInstances(agent): 501 if self.active_map.agent_layer.getInstances(agent):
502 continue 502 continue
503 self.createAgent(agents[agent], agent, world) 503 self.createAgent(agents[agent], agent, world)
504 self.updateObjectDB(world)
505 504
506 def placePC(self, world): 505 def placePC(self, world):
507 """Places the PlayerCharacter on the map""" 506 """Places the PlayerCharacter on the map"""
508 agent = self.agents[self.ALL_AGENTS_KEY]["PlayerCharacter"] 507 agent = self.agents[self.ALL_AGENTS_KEY]["PlayerCharacter"]
509 inst_id = "PlayerCharacter" 508 inst_id = "PlayerCharacter"