From 2740711092babbc912bb0170d4666cbea2f64689 Mon Sep 17 00:00:00 2001 From: Jaime Passos Date: Sun, 29 Sep 2019 19:10:49 -0300 Subject: [PATCH] png fix yes so cool --- src/r_things.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/r_things.c b/src/r_things.c index 355c041fb..3d2ea1743 100644 --- a/src/r_things.c +++ b/src/r_things.c @@ -248,7 +248,7 @@ void R_CacheRotSprite(spritenum_t sprnum, UINT8 frame, spriteinfo_t *sprinfo, sp if (!R_CheckIfPatch(lump)) return; - patch = (patch_t *)W_CacheLumpNum(lump, PU_CACHE); + patch = (patch_t *)W_CachePatchNum(lump, PU_STATIC); width = patch->width; height = patch->height; @@ -1733,7 +1733,7 @@ static void R_ProjectSprite(mobj_t *thing) vis->patch = rotsprite; else #endif - vis->patch = W_CacheLumpNum(sprframe->lumppat[rot], PU_CACHE); + vis->patch = W_CachePatchNum(sprframe->lumppat[rot], PU_CACHE); // // determine the colormap (lightlevel & special effects) @@ -1925,7 +1925,7 @@ static void R_ProjectPrecipitationSprite(precipmobj_t *thing) //Fab: lumppat is the lump number of the patch to use, this is different // than lumpid for sprites-in-pwad : the graphics are patched - vis->patch = W_CacheLumpNum(sprframe->lumppat[0], PU_CACHE); + vis->patch = W_CachePatchNum(sprframe->lumppat[0], PU_CACHE); // specific translucency if (thing->frame & FF_TRANSMASK)