From 2ab529226693228956b2fc06584f073b2a2c10b4 Mon Sep 17 00:00:00 2001 From: LightPower1 <62320132+LightPower1@users.noreply.github.com> Date: Sun, 14 Feb 2021 11:17:10 -0800 Subject: [PATCH] Make teammate buildings option work correctly --- src/visual/EffectGlow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/visual/EffectGlow.cpp b/src/visual/EffectGlow.cpp index 972ef218..d71735b2 100644 --- a/src/visual/EffectGlow.cpp +++ b/src/visual/EffectGlow.cpp @@ -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;