mirror of
https://github.com/isledecomp/isle.git
synced 2024-11-22 07:37:59 -05:00
Remove explicit truth tests
This commit is contained in:
parent
ce1756bf7a
commit
d169349bd6
3 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue