Merge branch 'fix-1093' into 'next'

Use correct slope for solid middle textures

Closes #1093

See merge request STJr/SRB2!2454
This commit is contained in:
sphere 2024-06-03 12:55:35 +00:00
commit 5d72b4383d

View file

@ -542,11 +542,19 @@ void P_LineOpening(line_t *linedef, mobj_t *mobj)
delta2 = abs(thingtop - texmid);
if (delta1 > delta2) { // Below
if (opentop > texbottom)
if (opentop > texbottom) {
opentop = texbottom;
if ((linedef->flags & ML_MIDPEG) != 0) {
opentopslope = openbottomslope;
}
}
} else { // Above
if (openbottom < textop)
if (openbottom < textop) {
openbottom = textop;
if ((linedef->flags & ML_MIDPEG) == 0) {
openbottomslope = opentopslope;
}
}
}
}
}