# HG changeset patch # User KarstenBock@gmx.net # Date 1317989706 -7200 # Node ID 452bbc3d915d7475530f63b49f37dd242150b072 # Parent ef24560eb92076c7d5771d36b7c146ddb898cac4 Fixed that items in the player characters inventory could not be dropped. diff -r ef24560eb920 -r 452bbc3d915d gamemodel.py --- a/gamemodel.py Thu Oct 06 16:08:00 2011 +0200 +++ b/gamemodel.py Fri Oct 07 14:15:06 2011 +0200 @@ -501,7 +501,6 @@ if self.active_map.agent_layer.getInstances(agent): continue self.createAgent(agents[agent], agent, world) - self.updateObjectDB(world) def placePC(self, world): """Places the PlayerCharacter on the map""" diff -r ef24560eb920 -r 452bbc3d915d gamescenecontroller.py --- a/gamescenecontroller.py Thu Oct 06 16:08:00 2011 +0200 +++ b/gamescenecontroller.py Fri Oct 07 14:15:06 2011 +0200 @@ -360,6 +360,7 @@ self.model.placeAgents(self) self.model.placePC(self) + self.model.updateObjectDB(self) self.model.map_change = False # The PlayerCharacter has an inventory, and also some # filling of the ready slots in the HUD. diff -r ef24560eb920 -r 452bbc3d915d objects/action.py --- a/objects/action.py Thu Oct 06 16:08:00 2011 +0200 +++ b/objects/action.py Fri Oct 07 14:15:06 2011 +0200 @@ -435,6 +435,7 @@ self.model.deleteObject(identifier) self.model.addAgent(map_name, {identifier: agent_values}) self.model.placeAgents(self.item.entity.world) + self.model.updateObjectDB(self.item.entity.world) super(DropItemAction, self).execute() class DropItemFromContainerAction(DropItemAction):