interpolate backsector before "fake flat" hack (#1122)

This commit is contained in:
Roman Fomin 2023-07-03 14:01:36 +07:00 committed by GitHub
parent 5b832c021b
commit 1d269da0f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -378,16 +378,16 @@ static void R_AddLine (seg_t *line)
if (!backsector) if (!backsector)
goto clipsolid; goto clipsolid;
// killough 3/8/98, 4/4/98: hack for invisible ceilings / deep water
backsector = R_FakeFlat(backsector, &tempsec, NULL, NULL, true);
doorclosed = 0; // killough 4/16/98
// [AM] Interpolate sector movement before // [AM] Interpolate sector movement before
// running clipping tests. Frontsector // running clipping tests. Frontsector
// should already be interpolated. // should already be interpolated.
R_MaybeInterpolateSector(backsector); R_MaybeInterpolateSector(backsector);
// killough 3/8/98, 4/4/98: hack for invisible ceilings / deep water
backsector = R_FakeFlat(backsector, &tempsec, NULL, NULL, true);
doorclosed = 0; // killough 4/16/98
// Closed door. // Closed door.
if (backsector->interpceilingheight <= frontsector->interpfloorheight if (backsector->interpceilingheight <= frontsector->interpfloorheight