- 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:
Christoph Oelckers 2016-02-19 23:54:55 +01:00
commit d876a95152
2 changed files with 8 additions and 0 deletions

View file

@ -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;
}