mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 12:27:43 +00:00
Remove recursion depth check
This commit is contained in:
@@ -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
Submodule amuse updated: 594fb346e1...1fefba66e7
Reference in New Issue
Block a user