this is null anyways if disabled

This commit is contained in:
Alug committed 2024-11-30 21:44:23 +01:00
1 parent 5e46b9de60
commit 69e5b7c199
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -4822,7 +4822,7 @@ static void HWR_ProjectSprite(mobj_t *thing)
vis->spriteyoffset = FIXED_TO_FLOAT(spr_topoffset);
#ifdef ROTSPRITE
if (rotsprite && cv_spriteroll.value)
if (rotsprite != NULL)
vis->gpatch = (GLPatch_t *)rotsprite;
else
#endif
+1 -1
View File
@@ -1750,7 +1750,7 @@ static void R_ProjectSprite(mobj_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
#ifdef ROTSPRITE
if ((rotsprite != NULL) && (cv_spriteroll.value))
if (rotsprite != NULL)
vis->patch = rotsprite;
else
#endif