dont precache anything ever in HWR_PrecacheLevel if disabled

before some cvar callbacks called this unconditionally
This commit is contained in:
Alug committed 2025-11-01 16:12:05 +01:00
1 parent c9c19deff9
commit 6c618fc796
1 file changed
+1 -1
+1 -1
View File
@@ -811,7 +811,7 @@ static void HWR_PrecacheLevelTextures(void)
void HWR_PrecacheLevel(void)
{
if (gamestate != GS_LEVEL)
if (gamestate != GS_LEVEL || !cv_precachetextures.value)
return;
// Precache flats.