dont put potential null mobj into interpolation stuff

This commit is contained in:
Alug committed 2024-12-22 01:42:51 +01:00
1 parent 1341ec80bf
commit d8b36ef0da
1 file changed
+2 -2
+2 -2
View File
@@ -1116,8 +1116,6 @@ fixed_t R_GetShadowZ(mobj_t *thing, pslope_t **shadowslope)
//
static void R_ProjectSprite(mobj_t *thing)
{
mobj_t *oldthing = thing;
fixed_t tr_x, tr_y;
fixed_t gxt, gyt;
fixed_t tx, tz;
@@ -1170,6 +1168,8 @@ static void R_ProjectSprite(mobj_t *thing)
if (P_MobjWasRemoved(thing) || thing->subsector == NULL)
return;
mobj_t *oldthing = thing;
const boolean mirrored = thing->mirrored;
const boolean vflip = (thing->eflags & MFE_VERTICALFLIP);
const boolean hflip = (!(thing->frame & FF_HORIZONTALFLIP) != !mirrored);