From 27086bfb977358d4b7c878951a23bca781dc8deb Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Tue, 18 Nov 2025 15:38:25 +0500 Subject: [PATCH] engine: set r_wadtextures and r_allow_wad3_luma as latched cvars, as those require reloading textures and thus the game --- engine/common/model.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/common/model.c b/engine/common/model.c index 447ffcea..1e4a9d6c 100644 --- a/engine/common/model.c +++ b/engine/common/model.c @@ -29,9 +29,9 @@ static model_t mod_known[MAX_MODELS]; static int mod_numknown = 0; poolhandle_t com_studiocache; // cache for submodels CVAR_DEFINE( mod_studiocache, "r_studiocache", "1", FCVAR_ARCHIVE, "enables studio cache for speedup tracing hitboxes" ); -CVAR_DEFINE_AUTO( r_wadtextures, "0", 0, "completely ignore textures in the bsp-file if enabled" ); +CVAR_DEFINE_AUTO( r_wadtextures, "0", FCVAR_LATCH, "completely ignore textures in the bsp-file if enabled" ); CVAR_DEFINE_AUTO( r_showhull, "0", 0, "draw collision hulls 1-3" ); -CVAR_DEFINE_AUTO( r_allow_wad3_luma, "0", FCVAR_ARCHIVE, "allow usage of luma textures in wad3 (tilde textures)" ); +CVAR_DEFINE_AUTO( r_allow_wad3_luma, "0", FCVAR_LATCH|FCVAR_ARCHIVE, "allow usage of luma textures in wad3 (tilde textures)" ); /* ===============================================================================