From f6259cc8c6913e91e19e091a5ccdcae3ffc8092f Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Sat, 19 May 2018 20:23:13 -1000 Subject: [PATCH] Remove recursion depth check --- Runtime/World/CScriptDoor.cpp | 7 ------- amuse | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/Runtime/World/CScriptDoor.cpp b/Runtime/World/CScriptDoor.cpp index 934c7147e..2b598e1ae 100644 --- a/Runtime/World/CScriptDoor.cpp +++ b/Runtime/World/CScriptDoor.cpp @@ -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()); diff --git a/amuse b/amuse index 594fb346e..1fefba66e 160000 --- a/amuse +++ b/amuse @@ -1 +1 @@ -Subproject commit 594fb346e1ffd25f7d387f42716cd77202460c30 +Subproject commit 1fefba66e7fc96cb6fc1b1b014c365da2e0b7a43