env_glow: Fix some typo and register a missing nonvirtual method as such

This commit is contained in:
Marco Cawthorne 2023-02-15 09:42:22 -08:00
parent 952ec87038
commit 95db9c7924
Signed by: eukara
GPG Key ID: CE2032F0A2882A22
1 changed files with 3 additions and 2 deletions

View File

@ -59,6 +59,7 @@ private:
vector m_vecOrientation;
nonvirtual bool IsVisible(vector);
nonvirtual void RenderGlow(vector, vector);
};
bool
@ -93,7 +94,7 @@ env_glow::IsVisible(vector vecPlayer)
bool
env_glow::CanSpawn(bool clientSide)
{
return false;
return true;
}
void env_sun_lensflare(vector, float, vector);
@ -167,7 +168,7 @@ env_glow::predraw(void)
float flDist = vlen(vecPlayer - origin);
if (IsVisible(vecPlayer) == false)
return;
return (PREDRAW_NEXT);
/* Scale the glow somewhat with the players distance */
fsize = m_vecSize * m_flScale;