Remove recursion depth check

This commit is contained in:
Jack Andersen 2018-05-19 20:23:13 -10:00
parent 13747ff61f
commit f6259cc8c6
2 changed files with 1 additions and 8 deletions

View File

@ -79,14 +79,7 @@ void CScriptDoor::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId uid, CStat
{ {
if (x27e_partner2 != kInvalidUniqueId) if (x27e_partner2 != kInvalidUniqueId)
if (CEntity* ent = mgr.ObjectById(x27e_partner2)) if (CEntity* ent = mgr.ObjectById(x27e_partner2))
{
static int RecDepth = 0;
if (RecDepth > 9)
printf("");
++RecDepth;
mgr.SendScriptMsg(ent, GetUniqueId(), EScriptObjectMessage::Close); mgr.SendScriptMsg(ent, GetUniqueId(), EScriptObjectMessage::Close);
--RecDepth;
}
x2a8_26_isOpen = false; x2a8_26_isOpen = false;
SetDoorAnimation(EDoorAnimType::Close); SetDoorAnimation(EDoorAnimType::Close);
mgr.GetCameraManager()->GetBallCamera()->DoorClosing(GetUniqueId()); mgr.GetCameraManager()->GetBallCamera()->DoorClosing(GetUniqueId());

2
amuse

@ -1 +1 @@
Subproject commit 594fb346e1ffd25f7d387f42716cd77202460c30 Subproject commit 1fefba66e7fc96cb6fc1b1b014c365da2e0b7a43