Skip to content

Commit

Permalink
Fix interpolation problem of blood splats, shadows on lifts
Browse files Browse the repository at this point in the history
  • Loading branch information
bradharding committed Jan 10, 2025
1 parent 3a537da commit c5eaa49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/r_things.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit c5eaa49

Please sign in to comment.