Revert "Fix R_CacheSpriteBrightMap trying to cache out of range lump"

This reverts commit cc94145e19.
This commit is contained in:
NepDisk 2024-09-02 04:48:25 -04:00
parent cc94145e19
commit 78df4edfce

View file

@ -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);
}
//