Make sure to update seasaw reverse gravity flags

This commit is contained in:
Lat 2023-09-23 11:32:59 +02:00
parent 12b80b392b
commit fddc15f11f

View file

@ -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;
} }