Client: Remove redundant addentity() calls from predraws of entity classes that

don't require drawing of a modelindex.
This commit is contained in:
Marco Cawthorne 2021-06-29 10:53:36 +02:00
parent 883a64b744
commit 9309aef925
7 changed files with 0 additions and 8 deletions

View file

@ -124,7 +124,6 @@ env_glow::predraw(void)
[1,0], m_vecColor * m_flMaxAlpha, m_flAlpha);
R_EndPolygon();
#endif
addentity(this);
return (PREDRAW_NEXT);
}

View file

@ -47,7 +47,6 @@ float env_laser::predraw(void)
R_PolygonVertex(origin, [0,1], [1,1,1], 1.0f);
R_EndPolygonRibbon(2, [1,0]);
addentity(this);
return (PREDRAW_NEXT);
}

View file

@ -61,7 +61,6 @@ class env_sun:CBaseEntity
float
env_sun::predraw(void)
{
addentity(this);
return (PREDRAW_NEXT);
}

View file

@ -178,7 +178,6 @@ prop_rope::predraw(void)
/* only drawing one segment. */
if (spawnflags & 1) {
addentity(this);
return (PREDRAW_NEXT);
}
@ -209,7 +208,6 @@ prop_rope::predraw(void)
sc += (M_PI * (1 / segments));
}
addentity(this);
return (PREDRAW_NEXT);
}

View file

@ -107,7 +107,6 @@ env_projectedtexture::predraw(void)
dynamiclight_set(p, LFIELD_NEARCLIP, m_flNearZ);
dynamiclight_set(p, LFIELD_STYLESTRING, m_strPattern);
addentity(this);
return (PREDRAW_NEXT);
}

View file

@ -118,7 +118,6 @@ light_dynamic::predraw(void)
if (m_strPattern)
dynamiclight_set(p, LFIELD_STYLESTRING, m_strPattern);
addentity(this);
return (PREDRAW_NEXT);
}

View file

@ -145,7 +145,6 @@ CSpraylogo::predraw(void)
width = v_up / 64;
height = v_forward / 64;
adddecal(m_strName, m_vecPosition, width, height, light, 1.0f);
addentity(this);
}
return (PREDRAW_NEXT);
}