changeset 105:dc573ac08355

Fixed graphical representation of lockables, that are open, when creating the agent.
author KarstenBock@gmx.net
date Fri, 30 Sep 2011 14:11:02 +0200
parents c9afad46091b
children edadf3ff8a9a
files gamemodel.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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):