mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Move higher
This commit is contained in:
parent
4569d9650a
commit
99c1f8dba5
1 changed files with 10 additions and 10 deletions
20
src/p_map.c
20
src/p_map.c
|
|
@ -1818,6 +1818,16 @@ boolean P_CheckPosition(mobj_t *thing, fixed_t x, fixed_t y)
|
|||
tmfloorstep = 0;
|
||||
tmceilingstep = 0;
|
||||
|
||||
if (thingtop < thing->ceilingz)
|
||||
{
|
||||
thing->ceilingdrop = 0;
|
||||
}
|
||||
|
||||
if (thing->z > thing->floorz)
|
||||
{
|
||||
thing->floordrop = 0;
|
||||
}
|
||||
|
||||
// Check list of fake floors and see if tmfloorz/tmceilingz need to be altered.
|
||||
if (newsubsec->sector->ffloors)
|
||||
{
|
||||
|
|
@ -2035,16 +2045,6 @@ boolean P_CheckPosition(mobj_t *thing, fixed_t x, fixed_t y)
|
|||
if (!P_BlockLinesIterator(bx, by, PIT_CheckLine))
|
||||
blockval = false;
|
||||
|
||||
if (thingtop < thing->ceilingz)
|
||||
{
|
||||
thing->ceilingdrop = 0;
|
||||
}
|
||||
|
||||
if (thing->z > thing->floorz)
|
||||
{
|
||||
thing->floordrop = 0;
|
||||
}
|
||||
|
||||
return blockval;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue