From 78df4edfcebbc28c26d0f4e3964ce0e0d123f88a Mon Sep 17 00:00:00 2001 From: NepDisk <16447892+NepDisk@users.noreply.github.com> Date: Mon, 2 Sep 2024 04:48:25 -0400 Subject: [PATCH] Revert "Fix R_CacheSpriteBrightMap trying to cache out of range lump" This reverts commit cc94145e1982642630cf1f603f370ff09106b580. --- src/r_things.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/r_things.c b/src/r_things.c index 8b9e284eb..e7893082a 100644 --- a/src/r_things.c +++ b/src/r_things.c @@ -1240,14 +1240,7 @@ static patch_t *R_CacheSpriteBrightMap(const spriteinfo_t *sprinfo, UINT8 frame) name = sprinfo->bright[SPRINFO_DEFAULT_PIVOT]; } - const lumpnum_t num = W_CheckNumForLongName(name); - - if (num == LUMPERROR) - { - return NULL; - } - - return W_CachePatchNum(num, PU_SPRITE); + return W_CachePatchNum(W_CheckNumForLongName(name), PU_SPRITE); } //