From d169349bd61294e3cf4d645ac59244b48fb95867 Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Wed, 17 Apr 2024 08:47:23 -0400 Subject: [PATCH] Remove explicit truth tests --- LEGO1/lego/legoomni/src/control/legocontrolmanager.cpp | 2 +- LEGO1/lego/sources/misc/legocontainer.cpp | 2 +- LEGO1/lego/sources/roi/legolod.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/LEGO1/lego/legoomni/src/control/legocontrolmanager.cpp b/LEGO1/lego/legoomni/src/control/legocontrolmanager.cpp index 8f88d5d5..3274e997 100644 --- a/LEGO1/lego/legoomni/src/control/legocontrolmanager.cpp +++ b/LEGO1/lego/legoomni/src/control/legocontrolmanager.cpp @@ -66,7 +66,7 @@ MxBool LegoControlManager::FUN_10029210(LegoEventNotificationParam& p_param, MxP m_event.SetKey(p_param.GetKey()); if (p_param.GetType() == c_notificationButtonUp) { - if (m_unk0x10 == TRUE) { + if (m_unk0x10) { m_unk0x10 = FALSE; return TRUE; } diff --git a/LEGO1/lego/sources/misc/legocontainer.cpp b/LEGO1/lego/sources/misc/legocontainer.cpp index b6a04a98..eb94b97d 100644 --- a/LEGO1/lego/sources/misc/legocontainer.cpp +++ b/LEGO1/lego/sources/misc/legocontainer.cpp @@ -125,7 +125,7 @@ void LegoTextureContainer::EraseFromList(LegoTextureInfo* p_textureInfo) if ((*it).first == p_textureInfo) { (*it).second = FALSE; - if (p_textureInfo->m_texture->Release() == TRUE) { + if (p_textureInfo->m_texture->Release()) { delete p_textureInfo; m_list.erase(it); } diff --git a/LEGO1/lego/sources/roi/legolod.cpp b/LEGO1/lego/sources/roi/legolod.cpp index e9997907..8bfb7a3f 100644 --- a/LEGO1/lego/sources/roi/legolod.cpp +++ b/LEGO1/lego/sources/roi/legolod.cpp @@ -367,7 +367,7 @@ LegoResult LegoLOD::GetTexture(LegoTextureInfo*& p_textureInfo) { for (LegoU32 i = m_unk0x1c; i < m_numMeshes; i++) { if (m_melems[i].m_unk0x04) { - if (LegoTextureInfo::GetGroupTexture(m_melems[i].m_tglMesh, p_textureInfo) == TRUE) { + if (LegoTextureInfo::GetGroupTexture(m_melems[i].m_tglMesh, p_textureInfo)) { return SUCCESS; } }