From f75bbf478efd340d3eebe66c3c9bc000c3cac786 Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Fri, 22 Dec 2023 14:10:20 -0500 Subject: [PATCH] Replace more magic values --- LEGO1/mxvideopresenter.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/LEGO1/mxvideopresenter.cpp b/LEGO1/mxvideopresenter.cpp index 259d8651..b1beb08e 100644 --- a/LEGO1/mxvideopresenter.cpp +++ b/LEGO1/mxvideopresenter.cpp @@ -188,16 +188,16 @@ void MxVideoPresenter::Init() m_unk0x5c = 1; m_unk0x58 = NULL; m_unk0x60 = -1; - m_flags = m_flags & 0xfe; + m_flags &= ~Flag_Bit1; if (MVideoManager() != NULL) { MVideoManager(); - m_flags = m_flags | 2; - m_flags = m_flags & 0xfb; + m_flags |= Flag_Bit2; + m_flags &= ~Flag_Bit3; } - m_flags = m_flags & 0xf7; - m_flags = m_flags & 0xef; + m_flags &= ~Flag_Bit4; + m_flags &= ~Flag_Bit5; } // FUNCTION: LEGO1 0x100b27b0 @@ -209,8 +209,8 @@ void MxVideoPresenter::Destroy(MxBool p_fromDestructor) if (m_unk0x58) { m_unk0x58->Release(); m_unk0x58 = NULL; - m_flags = m_flags & 0xfd; - m_flags = m_flags & 0xfb; + m_flags &= ~Flag_Bit2; + m_flags &= ~Flag_Bit3; } if (MVideoManager() && (m_alpha || m_bitmap)) {