# HG changeset patch # User KarstenBock@gmx.net # Date 1317384662 -7200 # Node ID dc573ac083559298b58ead9e72d46525d7e91b27 # Parent c9afad46091bb186bdd6527a1ef77b5bc820c563 Fixed graphical representation of lockables, that are open, when creating the agent. diff -r c9afad46091b -r dc573ac08355 gamemodel.py --- a/gamemodel.py Fri Sep 30 14:05:16 2011 +0200 +++ b/gamemodel.py Fri Sep 30 14:11:02 2011 +0200 @@ -467,6 +467,8 @@ item = self.create_item(identifier, item_data, world, item_type) equip.equip(obj.equip, item.equipable, slot) + if (obj.fifeagent and (obj.lockable and not obj.lockable.closed)): + obj.fifeagent.behaviour.animate("opened", repeating=True) return obj def create_item(self, identifier, item_data, world, item_type):