From c5eaa497b1d721c83c00e2aae16de8a3144be653 Mon Sep 17 00:00:00 2001 From: Brad Harding Date: Fri, 10 Jan 2025 19:43:47 +1100 Subject: [PATCH] Fix interpolation problem of blood splats, shadows on lifts --- src/r_things.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/r_things.c b/src/r_things.c index 185f4bb1a..27b3d9c57 100644 --- a/src/r_things.c +++ b/src/r_things.c @@ -799,7 +799,7 @@ static void R_ProjectSprite(mobj_t *thing) vis->scale = xscale; vis->gx = fx; vis->gy = fy; - vis->gz = thing->subsector->sector->floorheight; + vis->gz = thing->subsector->sector->interpfloorheight; vis->gzt = gzt; if ((flags2 & MF2_CASTSHADOW) && xscale >= FRACUNIT / 4 && drawshadows) @@ -938,7 +938,7 @@ static void R_ProjectBloodSplat(const bloodsplat_t *splat) vis->gy = fy; vis->color = (r_textures ? splat->viscolor : nearestlightgray); vis->colfunc = splat->viscolfunc; - vis->texturemid = splat->sector->floorheight + FRACUNIT - viewz; + vis->texturemid = splat->sector->interpfloorheight + FRACUNIT - viewz; vis->xiscale = FixedDiv(FRACUNIT, xscale); if (x1 < 0)