Merge branch 'master' into new_level_refactor

This commit is contained in:
Christoph Oelckers 2019-01-30 22:03:21 +01:00
commit 0eb3b2abca
4 changed files with 1 additions and 5 deletions

View file

@ -78,8 +78,6 @@ CUSTOM_CVAR (Bool, gl_lights, true, CVAR_ARCHIVE | CVAR_GLOBALCONFIG | CVAR_NOIN
} }
} }
CVAR (Bool, gl_attachedlights, true, CVAR_ARCHIVE | CVAR_GLOBALCONFIG);
//========================================================================== //==========================================================================
// //
//========================================================================== //==========================================================================
@ -863,6 +861,7 @@ void FLevelLocals::RecreateAllAttachedLights()
if (a->IsKindOf(NAME_DynamicLight)) if (a->IsKindOf(NAME_DynamicLight))
{ {
::AttachLight(a); ::AttachLight(a);
::ActivateLight(a);
} }
else else
{ {

View file

@ -6,7 +6,6 @@
EXTERN_CVAR(Bool, r_dynlights) EXTERN_CVAR(Bool, r_dynlights)
EXTERN_CVAR(Bool, gl_lights) EXTERN_CVAR(Bool, gl_lights)
EXTERN_CVAR(Bool, gl_attachedlights)
struct side_t; struct side_t;
struct seg_t; struct seg_t;

View file

@ -16,7 +16,6 @@ EXTERN_CVAR(Bool, gl_usefb)
EXTERN_CVAR(Int, gl_weaponlight) EXTERN_CVAR(Int, gl_weaponlight)
EXTERN_CVAR (Bool, gl_lights); EXTERN_CVAR (Bool, gl_lights);
EXTERN_CVAR (Bool, gl_attachedlights);
EXTERN_CVAR (Bool, gl_light_sprites); EXTERN_CVAR (Bool, gl_light_sprites);
EXTERN_CVAR (Bool, gl_light_particles); EXTERN_CVAR (Bool, gl_light_particles);

View file

@ -2260,7 +2260,6 @@ OptionMenu "GLLightOptions" protected
Title "$GLLIGHTMNU_TITLE" Title "$GLLIGHTMNU_TITLE"
Option "$TCMNU_DYNLIGHTS", "r_dynlights", "OnOff" Option "$TCMNU_DYNLIGHTS", "r_dynlights", "OnOff"
Option "$GLLIGHTMNU_LIGHTSENABLED", gl_lights, "OnOff" Option "$GLLIGHTMNU_LIGHTSENABLED", gl_lights, "OnOff"
Option "$GLLIGHTMNU_LIGHTDEFS", gl_attachedlights, "YesNo"
Option "$GLLIGHTMNU_LIGHTSPRITES", gl_light_sprites, "YesNo" Option "$GLLIGHTMNU_LIGHTSPRITES", gl_light_sprites, "YesNo"
Option "$GLLIGHTMNU_LIGHTPARTICLES", gl_light_particles, "YesNo" Option "$GLLIGHTMNU_LIGHTPARTICLES", gl_light_particles, "YesNo"
Option "$GLLIGHTMNU_LIGHTSHADOWMAP", gl_light_shadowmap, "YesNo" Option "$GLLIGHTMNU_LIGHTSHADOWMAP", gl_light_shadowmap, "YesNo"