Mercurial > parpg-source
changeset 137:53faff63037f
createItem now calls UpdateObjectDB after it created the item.
author | KarstenBock@gmx.net |
---|---|
date | Sun, 09 Oct 2011 14:03:25 +0200 |
parents | 9397f3e4516d |
children | 90ad38b00f13 |
files | gamemodel.py |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/gamemodel.py Sun Oct 09 13:31:08 2011 +0200 +++ b/gamemodel.py Sun Oct 09 14:03:25 2011 +0200 @@ -508,6 +508,7 @@ item = createEntity(item_data, identifier, world, None) item.containable.item_type = item_type self.game_state.addObject(identifier, None, item) + self.updateObjectDB(world) return item def placeAgents(self, world):