# HG changeset patch # User KarstenBock@gmx.net # Date 1316780322 -7200 # Node ID a33fdfeb41099582cb235205e177ed27870ac0d0 # Parent 5feab6555bf9efb5c7abf42e634932e82dc284d7 Fixed bug in "getItemActions" when the Entity has a change_map component. diff -r 5feab6555bf9 -r a33fdfeb4109 src/parpg/gamescenecontroller.py --- a/src/parpg/gamescenecontroller.py Fri Sep 23 14:11:49 2011 +0200 +++ b/src/parpg/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",