changeset 81:28561412c7e7

Fixed bug in "getItemActions" when the Entity has a change_map component.
author KarstenBock@gmx.net
date Fri, 23 Sep 2011 14:18:42 +0200
parents d0b600d7136c
children e864b704dd59
files gamescenecontroller.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/gamescenecontroller.py	Fri Sep 23 14:11:49 2011 +0200
+++ b/gamescenecontroller.py	Fri Sep 23 14:18:42 2011 +0200
@@ -446,13 +446,13 @@
                                 ExamineAction(self, 
                                               obj_id, obj.description.view_name, 
                                               obj.description.desc)])
-            #WORKAROUND: To get rid of exception in gamescenecontroller
+
             if obj.change_map:
                 actions.append(["Change Map", "Change Map",
                    player.fifeagent.behaviour.approach, 
                    [obj_pos.x, obj_pos.y],
-                   ChangeMapAction(self, obj.target_map_name,
-                                   obj.target_pos)])
+                   ChangeMapAction(self, obj.change_map.target_map,
+                                   obj.change_map.target_position)])
             
             if obj.lockable:
                 actions.append(["Open", "Open",