- set floor and ceiling sector when it comes from a 3D floor.
There's code in p_mobj.cpp which needs this to pick the correct plane.
This commit is contained in:
parent
6132f6971a
commit
d876a95152
2 changed files with 8 additions and 0 deletions
|
|
@ -226,6 +226,7 @@ static bool PIT_FindFloorCeiling(FMultiBlockLinesIterator::CheckResult &cres, co
|
|||
if (open.top < tmf.ceilingz)
|
||||
{
|
||||
tmf.ceilingz = open.top;
|
||||
if (open.topsec != NULL) tmf.floorsector = open.topsec;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -245,7 +246,9 @@ static bool PIT_FindFloorCeiling(FMultiBlockLinesIterator::CheckResult &cres, co
|
|||
}
|
||||
|
||||
if (open.lowfloor < tmf.dropoffz)
|
||||
{
|
||||
tmf.dropoffz = open.lowfloor;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue