mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 20:41:46 +00:00
Step up fake floors
This commit is contained in:
parent
3a4a687da0
commit
894860b9bc
1 changed files with 15 additions and 0 deletions
|
|
@ -634,6 +634,9 @@ void P_LineOpening(line_t *linedef, mobj_t *mobj)
|
||||||
ffloor_t *rover;
|
ffloor_t *rover;
|
||||||
fixed_t delta1, delta2;
|
fixed_t delta1, delta2;
|
||||||
|
|
||||||
|
const fixed_t oldopentop = opentop;
|
||||||
|
const fixed_t oldopenbottom = openbottom;
|
||||||
|
|
||||||
// Check for frontsector's fake floors
|
// Check for frontsector's fake floors
|
||||||
for (rover = front->ffloors; rover; rover = rover->next)
|
for (rover = front->ffloors; rover; rover = rover->next)
|
||||||
{
|
{
|
||||||
|
|
@ -717,6 +720,18 @@ void P_LineOpening(line_t *linedef, mobj_t *mobj)
|
||||||
lowfloor = topheight;
|
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 );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue