mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-23 16:21:15 +00:00
Match function
This commit is contained in:
parent
95485f378a
commit
04786c1078
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user