whitespace

This commit is contained in:
Christian Semmler 2024-04-05 06:50:52 -04:00
parent 601baa1a61
commit f62a360830

View File

@ -327,6 +327,7 @@ void LegoExtraActor::Restart()
void LegoExtraActor::VTable0x70(float p_time) void LegoExtraActor::VTable0x70(float p_time)
{ {
LegoAnimActorStruct* laas = NULL; LegoAnimActorStruct* laas = NULL;
switch (m_whichAnim) { switch (m_whichAnim) {
case 0: case 0:
LegoAnimActor::VTable0x70(p_time); LegoAnimActor::VTable0x70(p_time);
@ -356,19 +357,23 @@ void LegoExtraActor::VTable0x70(float p_time)
break; break;
} }
} }
if (laas) { if (laas) {
float duration2; float duration2, duration;
float duration = laas->GetDuration(); duration = laas->GetDuration();
duration2 = p_time - (m_scheduledTime - duration); duration2 = p_time - (m_scheduledTime - duration);
if (duration2 < 0) { if (duration2 < 0) {
duration2 = 0; duration2 = 0;
} }
else if (duration2 > duration) { else if (duration2 > duration) {
duration2 = duration; duration2 = duration;
} }
MxMatrix matrix(m_roi->GetLocal2World()); MxMatrix matrix(m_roi->GetLocal2World());
LegoTreeNode* root = laas->m_AnimTreePtr->GetRoot(); LegoTreeNode* root = laas->m_AnimTreePtr->GetRoot();
MxS32 count = root->GetNumChildren(); MxS32 count = root->GetNumChildren();
for (MxS32 i = 0; i < count; i++) { for (MxS32 i = 0; i < count; i++) {
LegoROI::FUN_100a8e80(root->GetChild(i), matrix, duration2, laas->m_roiMap); LegoROI::FUN_100a8e80(root->GetChild(i), matrix, duration2, laas->m_roiMap);
} }