Replace magic values with proper flag clearing

This commit is contained in:
Christian Semmler 2023-12-22 13:57:23 -05:00
parent cdc7b43db2
commit 2686643d20
No known key found for this signature in database
GPG key ID: 086DAA1360BEEE5C
4 changed files with 8 additions and 8 deletions

View file

@ -12,8 +12,8 @@ DECOMP_SIZE_ASSERT(MxFlcPresenter, 0x68);
MxFlcPresenter::MxFlcPresenter() MxFlcPresenter::MxFlcPresenter()
{ {
this->m_flicHeader = NULL; this->m_flicHeader = NULL;
this->m_flags &= 0xfd; this->m_flags &= ~Flag_Bit2;
this->m_flags &= 0xfb; this->m_flags &= ~Flag_Bit3;
} }
// FUNCTION: LEGO1 0x100b3420 // FUNCTION: LEGO1 0x100b3420

View file

@ -20,8 +20,8 @@ MxLoopingFlcPresenter::~MxLoopingFlcPresenter()
void MxLoopingFlcPresenter::Init() void MxLoopingFlcPresenter::Init()
{ {
this->m_unk0x68 = 0; this->m_unk0x68 = 0;
this->m_flags &= 0xfd; this->m_flags &= ~Flag_Bit2;
this->m_flags &= 0xfb; this->m_flags &= ~Flag_Bit3;
} }
// STUB: LEGO1 0x100b4432 // STUB: LEGO1 0x100b4432

View file

@ -21,8 +21,8 @@ MxLoopingSmkPresenter::~MxLoopingSmkPresenter()
void MxLoopingSmkPresenter::Init() void MxLoopingSmkPresenter::Init()
{ {
this->m_elapsedDuration = 0; this->m_elapsedDuration = 0;
this->m_flags &= 0xfd; this->m_flags &= ~Flag_Bit2;
this->m_flags &= 0xfb; this->m_flags &= ~Flag_Bit3;
} }
// FUNCTION: LEGO1 0x100b49d0 // FUNCTION: LEGO1 0x100b49d0

View file

@ -23,8 +23,8 @@ void MxSmkPresenter::Init()
{ {
m_currentFrame = 0; m_currentFrame = 0;
memset(&m_mxSmack, 0, sizeof(m_mxSmack)); memset(&m_mxSmack, 0, sizeof(m_mxSmack));
m_flags &= 0xfd; m_flags &= ~Flag_Bit2;
m_flags &= 0xfb; m_flags &= ~Flag_Bit3;
} }
// FUNCTION: LEGO1 0x100b3900 // FUNCTION: LEGO1 0x100b3900