diff behaviours/base.py @ 44:98f26f7636d8

Changes to make PARPG "runable" with grease. (With the correct modified assets)
author KarstenBock@gmx.net
date Tue, 06 Sep 2011 15:22:51 +0200
parents 77dfe4a917b5
children bf506f739322
line wrap: on
line diff
--- a/behaviours/base.py	Tue Sep 06 15:21:36 2011 +0200
+++ b/behaviours/base.py	Tue Sep 06 15:22:51 2011 +0200
@@ -53,7 +53,7 @@
         if self.agent is not None:
             self.agent.removeActionListener(self)
             
-        self.agent = layer.getInstance(self.parent.ID)
+        self.agent = layer.getInstance(self.parent.fifeagent.identifier)
         self.agent.addActionListener(self)
         self.state = _AGENT_STATE_NONE
         self.idle_counter = 1