Skip to content
Snippets Groups Projects
Commit 3a62ebbe authored by Lactozilla's avatar Lactozilla :speech_balloon:
Browse files

Set correct slope for solid midtextures

parent 47bcad4a
No related branches found
No related tags found
No related merge requests found
......@@ -539,11 +539,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;
}
}
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment