mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Make sure to update seasaw reverse gravity flags
This commit is contained in:
parent
12b80b392b
commit
fddc15f11f
1 changed files with 20 additions and 0 deletions
|
|
@ -41,6 +41,13 @@ static void Obj_DLZSeasawUpdate(mobj_t *mo, boolean ghostme)
|
||||||
mo->tracer->tics = 3;
|
mo->tracer->tics = 3;
|
||||||
P_MoveOrigin(mo->tracer, mo->x, mo->y, mo->z);
|
P_MoveOrigin(mo->tracer, mo->x, mo->y, mo->z);
|
||||||
P_SetScale(mo->tracer, mo->scale);
|
P_SetScale(mo->tracer, mo->scale);
|
||||||
|
|
||||||
|
if (mo->eflags & MFE_VERTICALFLIP)
|
||||||
|
{
|
||||||
|
mo->tracer->eflags |= MFE_VERTICALFLIP;
|
||||||
|
mo->tracer->eflags |= MF2_OBJECTFLIP;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -64,6 +71,12 @@ static void Obj_DLZSeasawUpdate(mobj_t *mo, boolean ghostme)
|
||||||
ptr->tics = 3;
|
ptr->tics = 3;
|
||||||
P_SetScale(ptr, mo->scale);
|
P_SetScale(ptr, mo->scale);
|
||||||
|
|
||||||
|
if (mo->eflags & MFE_VERTICALFLIP)
|
||||||
|
{
|
||||||
|
ptr->eflags |= MFE_VERTICALFLIP;
|
||||||
|
ptr->flags2 |= MF2_OBJECTFLIP;
|
||||||
|
}
|
||||||
|
|
||||||
if (ghostme && leveltime&1)
|
if (ghostme && leveltime&1)
|
||||||
{
|
{
|
||||||
mobj_t *g = P_SpawnGhostMobj(ptr);
|
mobj_t *g = P_SpawnGhostMobj(ptr);
|
||||||
|
|
@ -92,6 +105,13 @@ static void Obj_DLZSeasawUpdate(mobj_t *mo, boolean ghostme)
|
||||||
ptrp->angle = visan;
|
ptrp->angle = visan;
|
||||||
ptrp->tics = 3;
|
ptrp->tics = 3;
|
||||||
|
|
||||||
|
|
||||||
|
if (mo->eflags & MFE_VERTICALFLIP)
|
||||||
|
{
|
||||||
|
ptrp->eflags |= MFE_VERTICALFLIP;
|
||||||
|
ptrp->flags2 |= MF2_OBJECTFLIP;
|
||||||
|
}
|
||||||
|
|
||||||
hdist += 16;
|
hdist += 16;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue