env_glow: Fix some typo and register a missing nonvirtual method as such
This commit is contained in:
parent
952ec87038
commit
95db9c7924
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue