Refactor actor states, define enum (#1220)

* Refactor actor states, define enum

* Revert

* Rename `UpdateState` to `Animate`
This commit is contained in:
Christian Semmler
2024-12-13 12:30:50 -07:00
committed by GitHub
parent ce3f71ea0f
commit 6da2faa48c
44 changed files with 161 additions and 153 deletions

View File

@@ -65,7 +65,7 @@ MxFloat Doors::VTable0xcc(float p_time)
// FUNCTION: LEGO1 0x10066250
// FUNCTION: BETA10 0x10026a45
void Doors::UpdateState(float p_time)
void Doors::Animate(float p_time)
{
assert(m_ltDoor && m_rtDoor);
@@ -75,7 +75,7 @@ void Doors::UpdateState(float p_time)
switch (m_unk0x154) {
case 0:
m_unk0x154 = 1;
m_actorFlags = 0;
m_actorState = c_initial;
break;
case 1:
break;
@@ -108,7 +108,7 @@ void Doors::UpdateState(float p_time)
m_ltDoor->VTable0x14();
m_rtDoor->VTable0x14();
m_unk0x154 = 1;
m_actorFlags = 0;
m_actorState = c_initial;
m_unk0x1f4 = 0;
}
}