Skip to content

Commit 7edaa20

Browse files
committed
Lighting: Fix nvg stopping working after server restart
1 parent 03d6919 commit 7edaa20

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripting/ze_effects_lighting.sma

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ public plugin_init()
3333
new const pCvarLighting = register_cvar("ze_lighting", "")
3434
new const pCvarNvgFlags = register_cvar("ze_nvg_flags", "")
3535

36+
set_pcvar_string(pCvarNvgFlags, "") // Fix nvg stopping working after next map or server restart.
3637
bind_pcvar_string(pCvarLighting, g_szLight, charsmax(g_szLight))
3738

3839
hook_cvar_change(pCvarLighting, "cvar_Lightnig")

0 commit comments

Comments
 (0)