From dac70267395de1e9ee19d6ddaee6d0dee7dfbaf7 Mon Sep 17 00:00:00 2001 From: Alug Date: Sun, 3 Aug 2025 15:53:47 +0200 Subject: [PATCH] use R_GetFlat here does the exact same thing --- src/p_setup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/p_setup.c b/src/p_setup.c index e034c35b8..59d7f84e5 100644 --- a/src/p_setup.c +++ b/src/p_setup.c @@ -678,7 +678,7 @@ INT32 P_AddLevelFlat(const char *flatname, levelflat_t *levelflat) // check if our flat contains cyan pixels // not sure if this is the best way to do it but it works { - const UINT8 *flat = (UINT8 *)W_CacheLumpNum(levelflat->lumpnum, PU_LEVEL); + const UINT8 *flat = R_GetFlat(levelflat->lumpnum); size_t size = W_LumpLength(levelflat->lumpnum); for (size_t steppy = 0; steppy < size; steppy++) { @@ -738,7 +738,7 @@ INT32 P_AddLevelFlatRuntime(const char *flatname) // check if our flat contains cyan pixels // not sure if this is the best way to do it but it works { - const UINT8 *flat = (UINT8 *)W_CacheLumpNum(levelflat->lumpnum, PU_LEVEL); + const UINT8 *flat = R_GetFlat(levelflat->lumpnum); size_t size = W_LumpLength(levelflat->lumpnum); for (size_t steppy = 0; steppy < size; steppy++) {