Permalink
Browse files

also send trigger_clicked for doors and containers

but only for normal access, since it is used also with traps in iwd2 and
would prevent their disarming

example: iwd2 ar4100 10 doors with 41pdoori.baf and rock piles with traps

fixes not being able to get the Aurilite Holy Symbol
  • Loading branch information...
1 parent 807e0c0 commit 6140f54fc5db6d278d4151b556939ebede4953b5 @lynxlynxlynx lynxlynxlynx committed Jun 13, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 gemrb/core/GUI/GameControl.cpp
@@ -1849,6 +1849,7 @@ void GameControl::HandleContainer(Container *container, Actor *actor)
return;
}
+ container->AddTrigger(TriggerEntry(trigger_clicked, actor->GetGlobalID()));
actor->ClearPath();
actor->ClearActions();
strlcpy(Tmp, "UseContainer()", sizeof(Tmp));
@@ -1889,6 +1890,7 @@ void GameControl::HandleDoor(Door *door, Actor *actor)
return;
}
+ door->AddTrigger(TriggerEntry(trigger_clicked, actor->GetGlobalID()));
actor->ClearPath();
actor->ClearActions();
actor->TargetDoor = door->GetGlobalID();

0 comments on commit 6140f54

Please sign in to comment.