mirror of https://github.com/AxioDL/metaforce.git
Remove recursion depth check
This commit is contained in:
parent
13747ff61f
commit
f6259cc8c6
|
@ -79,14 +79,7 @@ void CScriptDoor::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId uid, CStat
|
|||
{
|
||||
if (x27e_partner2 != kInvalidUniqueId)
|
||||
if (CEntity* ent = mgr.ObjectById(x27e_partner2))
|
||||
{
|
||||
static int RecDepth = 0;
|
||||
if (RecDepth > 9)
|
||||
printf("");
|
||||
++RecDepth;
|
||||
mgr.SendScriptMsg(ent, GetUniqueId(), EScriptObjectMessage::Close);
|
||||
--RecDepth;
|
||||
}
|
||||
x2a8_26_isOpen = false;
|
||||
SetDoorAnimation(EDoorAnimType::Close);
|
||||
mgr.GetCameraManager()->GetBallCamera()->DoorClosing(GetUniqueId());
|
||||
|
|
2
amuse
2
amuse
|
@ -1 +1 @@
|
|||
Subproject commit 594fb346e1ffd25f7d387f42716cd77202460c30
|
||||
Subproject commit 1fefba66e7fc96cb6fc1b1b014c365da2e0b7a43
|
Loading…
Reference in New Issue