Removed gl_lights_checkside which essentially was just a pointless piece of cruft inherited from ZDoomGL.

This commit is contained in:
Christoph Oelckers 2018-04-16 08:45:50 +02:00
parent f57c804a5a
commit 8a2e52d651
5 changed files with 6 additions and 8 deletions

View file

@ -49,7 +49,6 @@
//
//==========================================================================
CVAR (Bool, gl_lights_checkside, true, CVAR_ARCHIVE | CVAR_GLOBALCONFIG);
CVAR (Bool, gl_light_sprites, true, CVAR_ARCHIVE | CVAR_GLOBALCONFIG);
CVAR (Bool, gl_light_particles, true, CVAR_ARCHIVE | CVAR_GLOBALCONFIG);
@ -69,7 +68,7 @@ bool gl_GetLight(int group, Plane & p, ADynamicLight * light, bool checkside, FD
if (radius <= 0.f) return false;
if (dist > radius) return false;
if (checkside && gl_lights_checkside && p.PointOnSide(pos.X, pos.Z, pos.Y))
if (checkside && p.PointOnSide(pos.X, pos.Z, pos.Y))
{
return false;
}