mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-27 06:12:19 +00:00
- fixed: The check for identical floor planes on an opening should never allow it to be narrowed down.
This can cause problems in rare situations where a sloped plane is checked outside its sector boundaries.
This commit is contained in:
parent
0489b6e7c5
commit
6ae266c76e
1 changed files with 3 additions and 1 deletions
|
@ -839,9 +839,11 @@ bool PIT_CheckLine(FMultiBlockLinesIterator &mit, FMultiBlockLinesIterator::Chec
|
|||
|
||||
// If the floor planes on both sides match we should recalculate open.bottom at the actual position we are checking
|
||||
// This is to avoid bumpy movement when crossing a linedef with the same slope on both sides.
|
||||
// This should never narrow down the opening, though, only widen it.
|
||||
if (open.frontfloorplane == open.backfloorplane && open.bottom > LINEOPEN_MIN)
|
||||
{
|
||||
open.bottom = open.frontfloorplane.ZatPoint(cres.Position);
|
||||
auto newopen = open.frontfloorplane.ZatPoint(cres.Position);
|
||||
if (newopen < open.bottom) open.bottom = newopen;
|
||||
}
|
||||
|
||||
if (rail &&
|
||||
|
|
Loading…
Reference in a new issue