mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-21 20:11:12 +00:00
Set correct slope for solid midtextures
This commit is contained in:
parent
47bcad4ab1
commit
3a62ebbe3e
1 changed files with 10 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue