mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-03 15:01:28 +00:00
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:
commit
5d72b4383d
1 changed files with 10 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue