diff --git a/LEGO1/lego/legoomni/include/legocarbuildpresenter.h b/LEGO1/lego/legoomni/include/legocarbuildpresenter.h index e8b5f141..52135bac 100644 --- a/LEGO1/lego/legoomni/include/legocarbuildpresenter.h +++ b/LEGO1/lego/legoomni/include/legocarbuildpresenter.h @@ -9,6 +9,10 @@ // SIZE 0x150 class LegoCarBuildAnimPresenter : public LegoAnimPresenter { public: + enum { + c_bit1 = 0x01 + }; + // SIZE 0x0c struct UnknownListEntry { // FUNCTION: LEGO1 0x100795c0 diff --git a/LEGO1/lego/legoomni/src/build/legocarbuildpresenter.cpp b/LEGO1/lego/legoomni/src/build/legocarbuildpresenter.cpp index 162ecfce..71d989dd 100644 --- a/LEGO1/lego/legoomni/src/build/legocarbuildpresenter.cpp +++ b/LEGO1/lego/legoomni/src/build/legocarbuildpresenter.cpp @@ -71,11 +71,11 @@ inline void LegoCarBuildAnimPresenter::Beta10Inline0x100733d0() MxLong bvar5; if (m_unk0x13c < time) { - bvar5 = 0; + bvar5 = FALSE; // I have no idea why this conditional is so convoluted - if (m_unk0x13c & 1) { - bvar5 = 1; + if (m_unk0x13c & c_bit1) { + bvar5 = TRUE; m_unk0x13c = time + 400; } else { @@ -83,10 +83,10 @@ inline void LegoCarBuildAnimPresenter::Beta10Inline0x100733d0() } if (bvar5) { - m_unk0x13c &= ~1; + m_unk0x13c &= ~c_bit1; } else { - m_unk0x13c |= 1; + m_unk0x13c |= c_bit1; } if (m_placedPartCount < m_numberOfParts) {