From e0a10482a746f8526155134e98dbdf3da416b619 Mon Sep 17 00:00:00 2001 From: terencehill Date: Thu, 3 Oct 2024 20:20:05 +0200 Subject: [PATCH] Fix another grayed out setting in the menu. It amends 0ef3b5b6b7 --- qcsrc/menu/xonotic/dialog_settings_effects.qc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/qcsrc/menu/xonotic/dialog_settings_effects.qc b/qcsrc/menu/xonotic/dialog_settings_effects.qc index 21961b65a..f8b6f5139 100644 --- a/qcsrc/menu/xonotic/dialog_settings_effects.qc +++ b/qcsrc/menu/xonotic/dialog_settings_effects.qc @@ -127,7 +127,10 @@ void XonoticEffectsSettingsTab_fill(entity me) setDependent(e, "mod_q3bsp_nolightmaps", 0, 0); me.TD(me, 1, 1, e = makeXonoticCheckBox_T(0, "r_shadow_gloss", _("Gloss"), _("Enable the use of glossmaps on textures supporting it"))); - setDependentAND3(e, "vid_gl20", 1, 1, "mod_q3bsp_nolightmaps", 0, 0, "r_glsl_deluxemapping", 1, 1); + if(cvar_type("vid_gl20") & CVAR_TYPEFLAG_ENGINE) + setDependentAND3(e, "vid_gl20", 1, 1, "mod_q3bsp_nolightmaps", 0, 0, "r_glsl_deluxemapping", 1, 1); + else + setDependentAND(e, "mod_q3bsp_nolightmaps", 0, 0, "r_glsl_deluxemapping", 1, 1); me.TR(me); me.TD(me, 1, 1, e = makeXonoticCheckBox_T(0, "r_glsl_offsetmapping", _("Offset mapping"), _("Offset mapping effect that will make textures with bumpmaps appear like they \"pop out\" of the flat 2D surface"))); -- 2.39.2