item_tfgoal: only set RenderFX when it belongs to a specific team.

This commit is contained in:
Marco Cawthorne 2023-01-22 20:28:59 -08:00
parent 5fdb709ce8
commit 2a754f971a
Signed by: eukara
GPG key ID: CE2032F0A2882A22

View file

@ -217,7 +217,12 @@ item_tfgoal::Respawn(void)
m_eActivator = __NULL__;
ReleaseThink();
m_status = GISTATUS_HOME;
SetRenderFX(RFX_GLOWSHELL);
if (m_iTeamOwner) {
SetRenderAmt(1.0f);
SetRenderFX(RFX_GLOWSHELL);
} else
return;
/* spawn into the world */
switch (m_iTeamOwner) {