Implement/Match LegoExtraActor::VTable0xc4

This commit is contained in:
Nathan 2024-04-05 08:12:35 -04:00
parent 32f1621ec7
commit 53a0cd0409

View File

@ -397,9 +397,23 @@ void LegoExtraActor::SetWorldSpeed(MxFloat p_worldSpeed)
LegoAnimActor::SetWorldSpeed(p_worldSpeed);
}
// STUB: LEGO1 0x1002b630
// FUNCTION: LEGO1 0x1002b630
void LegoExtraActor::VTable0xc4()
{
if (m_curAnim != 0) {
return;
}
if (-0.001 < m_worldSpeed || 0.001 > m_worldSpeed) {
MxU16 name = *((MxU16*) m_roi->GetName());
MxBool b = (name == 0x616d || name == 0x6170) ? TRUE : FALSE; // "ma" or "pa"
if (b) {
float duration = m_animMaps[m_curAnim]->GetDuration();
MxMatrix matrix(m_unk0xec);
LegoAnimActor::FUN_1001c360(duration, matrix);
}
}
}
// FUNCTION: LEGO1 0x1002b6f0