Remove explicit truth tests

This commit is contained in:
Christian Semmler 2024-04-17 08:47:23 -04:00
parent ce1756bf7a
commit d169349bd6
3 changed files with 3 additions and 3 deletions

View file

@ -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;
}

View file

@ -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);
}

View file

@ -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;
}
}