From fc29240fc42b4cac879a06e6e7e94ffeb1bd0145 Mon Sep 17 00:00:00 2001 From: Alug Date: Fri, 31 Oct 2025 02:25:57 +0100 Subject: [PATCH] make this intent more clear for non GLENCORE compile --- src/hardware/hw_cache.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/hardware/hw_cache.c b/src/hardware/hw_cache.c index ef0b9a1fb..bd308a6cd 100644 --- a/src/hardware/hw_cache.c +++ b/src/hardware/hw_cache.c @@ -685,8 +685,6 @@ static void HWR_PrecacheLevelTextures(void) const line_t *line = &lines[i]; #ifdef GLENCORE const int noencoremap = ((encoremap && (line->flags & ML_TFERLINE)) ? 2 : 1); -#else - const int noencoremap = 1; #endif // two sides for (j = 0; j < 2; j++) @@ -704,9 +702,11 @@ static void HWR_PrecacheLevelTextures(void) const INT32 texnum = sidetex[f]; if (texnum < 0 || texnum >= numtextures || texturepresent[texnum]) continue; - +#ifdef GLENCORE texturepresent[texnum] = 1|noencoremap; - +#else + texturepresent[texnum] = 1; +#endif HWR_GetTexture(texnum, false); #ifdef GLENCORE if (noencoremap & 2)