mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-26 12:21:19 +00:00
parent
a1c67e7e67
commit
c16516ef0d
2 changed files with 6 additions and 9 deletions
|
@ -7193,7 +7193,7 @@ static const char *const MOBJFLAG2_LIST[] = {
|
|||
NULL
|
||||
};
|
||||
|
||||
static const char *const MOBJEFLAG_LIST[8] = {
|
||||
static const char *const MOBJEFLAG_LIST[] = {
|
||||
"ONGROUND", // The mobj stands on solid floor (not on another mobj or in air)
|
||||
"JUSTHITFLOOR", // The mobj just hit the floor while falling, this is cleared on next frame
|
||||
"TOUCHWATER", // The mobj stands in a sector with water, and touches the surface
|
||||
|
|
13
src/p_mobj.c
13
src/p_mobj.c
|
@ -1493,13 +1493,12 @@ static void P_RingZMovement(mobj_t *mo)
|
|||
P_AdjustMobjFloorZ_PolyObjs(mo, mo->subsector);
|
||||
|
||||
// adjust height
|
||||
mo->z += mo->momz;
|
||||
|
||||
if (mo->eflags & MFE_APPLYPMOMZ && !P_IsObjectOnGround(mo))
|
||||
{
|
||||
mo->momz += mo->pmomz;
|
||||
mo->eflags &= ~MFE_APPLYPMOMZ;
|
||||
}
|
||||
mo->z += mo->momz;
|
||||
|
||||
// clip movement
|
||||
if (mo->z <= mo->floorz && !(mo->flags & MF_NOCLIPHEIGHT))
|
||||
|
@ -1563,13 +1562,12 @@ static boolean P_ZMovement(mobj_t *mo)
|
|||
P_AdjustMobjFloorZ_PolyObjs(mo, mo->subsector);
|
||||
|
||||
// adjust height
|
||||
mo->z += mo->momz;
|
||||
|
||||
if (mo->eflags & MFE_APPLYPMOMZ && !P_IsObjectOnGround(mo))
|
||||
{
|
||||
mo->momz += mo->pmomz;
|
||||
mo->eflags &= ~MFE_APPLYPMOMZ;
|
||||
}
|
||||
mo->z += mo->momz;
|
||||
|
||||
switch (mo->type)
|
||||
{
|
||||
|
@ -1989,14 +1987,14 @@ static void P_PlayerZMovement(mobj_t *mo)
|
|||
}
|
||||
|
||||
// adjust height
|
||||
mo->z += mo->momz;
|
||||
|
||||
if (mo->eflags & MFE_APPLYPMOMZ && !P_IsObjectOnGround(mo))
|
||||
{
|
||||
mo->momz += mo->pmomz;
|
||||
mo->eflags &= ~MFE_APPLYPMOMZ;
|
||||
}
|
||||
|
||||
mo->z += mo->momz;
|
||||
|
||||
// Have player fall through floor?
|
||||
if (mo->player->playerstate == PST_DEAD
|
||||
|| mo->player->playerstate == PST_REBORN)
|
||||
|
@ -2256,13 +2254,12 @@ static boolean P_SceneryZMovement(mobj_t *mo)
|
|||
P_AdjustMobjFloorZ_PolyObjs(mo, mo->subsector);
|
||||
|
||||
// adjust height
|
||||
mo->z += mo->momz;
|
||||
|
||||
if (mo->eflags & MFE_APPLYPMOMZ && !P_IsObjectOnGround(mo))
|
||||
{
|
||||
mo->momz += mo->pmomz;
|
||||
mo->eflags &= ~MFE_APPLYPMOMZ;
|
||||
}
|
||||
mo->z += mo->momz;
|
||||
|
||||
switch (mo->type)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue