mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-22 09:11:21 +00:00
Merge branch 'platformpmomz' into 'next'
Do not apply pmomz when jumping/bouncing through a platform Closes #72 See merge request STJr/SRB2!1955
This commit is contained in:
commit
177bdd6868
1 changed files with 8 additions and 5 deletions
13
src/p_map.c
13
src/p_map.c
|
@ -3073,11 +3073,14 @@ static boolean P_ThingHeightClip(mobj_t *thing)
|
|||
if (!rover || ((rover->fofflags & FOF_EXISTS) && (rover->fofflags & FOF_SOLID)))
|
||||
{
|
||||
hitfloor = bouncing;
|
||||
if (thing->eflags & MFE_VERTICALFLIP)
|
||||
thing->pmomz = thing->ceilingz - (thing->z + thing->height);
|
||||
else
|
||||
thing->pmomz = thing->floorz - thing->z;
|
||||
thing->eflags |= MFE_APPLYPMOMZ;
|
||||
if (!(thing->player) || !(thing->player->pflags & PF_JUMPED || bouncing))
|
||||
{
|
||||
if (thing->eflags & MFE_VERTICALFLIP)
|
||||
thing->pmomz = thing->ceilingz - (thing->z + thing->height);
|
||||
else
|
||||
thing->pmomz = thing->floorz - thing->z;
|
||||
thing->eflags |= MFE_APPLYPMOMZ;
|
||||
}
|
||||
|
||||
if (thing->eflags & MFE_VERTICALFLIP)
|
||||
thing->z = thing->ceilingz - thing->height;
|
||||
|
|
Loading…
Reference in a new issue