Skip to content
Snippets Groups Projects
Commit 894860b9 authored by James R.'s avatar James R.
Browse files

Step up fake floors

parent 3a4a687d
No related branches found
No related tags found
No related merge requests found
......@@ -634,6 +634,9 @@ void P_LineOpening(line_t *linedef, mobj_t *mobj)
ffloor_t *rover;
fixed_t delta1, delta2;
const fixed_t oldopentop = opentop;
const fixed_t oldopenbottom = openbottom;
// Check for frontsector's fake floors
for (rover = front->ffloors; rover; rover = rover->next)
{
......@@ -717,6 +720,18 @@ void P_LineOpening(line_t *linedef, mobj_t *mobj)
lowfloor = topheight;
}
}
if (opentop < oldopentop)
{
openceilingdiff = ( thingtop -
P_GetFFloorBottomZAt(openceilingrover, cross.x, cross.y) );
}
if (openbottom > oldopenbottom)
{
openfloordiff =
( P_GetFFloorTopZAt(openfloorrover, cross.x, cross.y) - mobj->z );
}
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment