From c4109a5d1101ef34eeab89a067c4ee71d24d7a08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Fri, 13 Aug 2010 23:56:36 +0200 Subject: [PATCH] psu_instance: menu_prompt has a target id. --- src/psu/psu_instance.erl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/psu/psu_instance.erl b/src/psu/psu_instance.erl index 83afcb1..dd867eb 100644 --- a/src/psu/psu_instance.erl +++ b/src/psu/psu_instance.erl @@ -120,12 +120,13 @@ object_init([{warp, DestX, DestY, DestZ, DestDir}|Tail], ZoneID, BlockID, Object object_insert(#psu_object{id={self(), ZoneID, warp, BlockID, ListIndex, ObjectIndex}, instancepid=self(), type=warp, args=#pos{x=DestX, y=DestY, z=DestZ, dir=DestDir}}), object_init(Tail, ZoneID, BlockID, ObjectID, TargetID, ListIndex, ObjectIndex + 1); -%% @doc Ignore for now: boss_gate, shoot_button, goggle_target, trap (all kinds) +%% @doc Ignore for now: boss_gate, shoot_button, goggle_target, trap (all kinds), menu_prompt object_init([Object|Tail], ZoneID, BlockID, ObjectID, TargetID, ListIndex, ObjectIndex) when Object =:= boss_gate; Object =:= shoot_button; Object =:= goggle_target; - Object =:= trap -> + Object =:= trap; + Object =:= menu_prompt -> object_init(Tail, ZoneID, BlockID, ObjectID + 1, TargetID + 1, ListIndex, ObjectIndex + 1); %% @doc Ignore for now: 'exit' (seems to take a TargetID but not an ObjectID