Match function

This commit is contained in:
Christian Semmler 2024-11-09 09:57:04 -07:00
parent 95485f378a
commit 04786c1078
2 changed files with 4 additions and 10 deletions

View File

@ -7,7 +7,7 @@
// SIZE 0x1f8
class Doors : public LegoPathActor {
public:
Doors() : m_unk0x154(0), m_unk0x15c(0), m_unk0x160(0), m_unk0x1f4(0) {}
Doors() : m_unk0x154(0), m_unk0x15c(NULL), m_unk0x160(NULL), m_unk0x1f4(0) {}
// FUNCTION: LEGO1 0x1000e430
const char* ClassName() const override // vtable+0x0c

View File

@ -10,18 +10,12 @@ MxResult Doors::VTable0x94(LegoPathActor* p_actor, MxBool p_bool)
{
if (m_unk0x154 == 1) {
m_unk0x154 = 2;
m_unk0x158 = Timer()->GetTime();
m_unk0x164 = *m_unk0x15c;
m_unk0x1ac = *m_unk0x160;
m_unk0x164 = m_unk0x15c[2];
m_unk0x1ac = m_unk0x160[2];
}
if (m_unk0x1f4 < 0.001) {
return SUCCESS;
}
return FAILURE;
return m_unk0x1f4 < 0.001 ? SUCCESS : FAILURE;
}
// STUB: LEGO1 0x10066250