Make teammate buildings option work correctly

This commit is contained in:
LightPower1 2021-02-14 11:17:10 -08:00 committed by TNE
parent 9853a3606f
commit 2ab5292266

View File

@ -279,7 +279,7 @@ bool EffectGlow::ShouldRenderGlow(IClientEntity *entity)
case ENTITY_BUILDING:
if (!buildings)
return false;
if (!ent->m_bEnemy() && !(teammate_buildings || teammates))
if (!ent->m_bEnemy() && !teammate_buildings)
return false;
if (CE_BYTE(LOCAL_E, netvar.m_bCarryingObject) && ent->m_IDX == HandleToIDX(CE_INT(LOCAL_E, netvar.m_hCarriedObject)))
return false;