From 56663a93ad86e3f13f61cefa5dd0436b439bf138 Mon Sep 17 00:00:00 2001 From: jonschz Date: Fri, 29 Nov 2024 20:59:06 +0100 Subject: [PATCH] Address review comment --- LEGO1/lego/legoomni/src/worlds/legoact2.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/LEGO1/lego/legoomni/src/worlds/legoact2.cpp b/LEGO1/lego/legoomni/src/worlds/legoact2.cpp index cfa07775..0038928c 100644 --- a/LEGO1/lego/legoomni/src/worlds/legoact2.cpp +++ b/LEGO1/lego/legoomni/src/worlds/legoact2.cpp @@ -373,13 +373,17 @@ undefined4 LegoAct2::FUN_10052560( pmatrix = &matrix; } - // This part does not match perfectly - MxBool arg9 = FALSE; + MxResult result; + if (p_param1 == Act2mainScript::c_tja009ni_RunAnim) { - arg9 = TRUE; + result = AnimationManager()->FUN_10060dc0(p_param1, pmatrix, TRUE, FALSE, NULL, TRUE, TRUE, TRUE, TRUE); + } + else { + result = + AnimationManager()->FUN_10060dc0(p_param1, pmatrix, TRUE, FALSE, NULL, TRUE, TRUE, TRUE, FALSE); } - if (!AnimationManager()->FUN_10060dc0(p_param1, pmatrix, TRUE, FALSE, NULL, TRUE, TRUE, TRUE, arg9)) { + if (result == SUCCESS) { m_unk0x1140 = p_param1; } }