Copy the flags of the reference slope

This commit is contained in:
Lactozilla 2024-05-20 20:25:42 -03:00
parent 3fb5907eff
commit 36395bfaac

View file

@ -868,7 +868,7 @@ static void P_CreateSolidMidtextureSlope(line_t *line)
pslope_t *ref = P_GetReferenceSlopeForMidtexture(line); pslope_t *ref = P_GetReferenceSlopeForMidtexture(line);
if (ref) if (ref)
{ {
line->midtexslope = Slope_Add(0); line->midtexslope = Slope_Add(ref->flags & SL_NOPHYSICS);
P_UpdateSolidMidtextureSlope(line, ref); P_UpdateSolidMidtextureSlope(line, ref);
} }