mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-22 04:21:23 +00:00
Restore MF2_OBJECTFLIP/MFE_VERTICALFLIP on rollout rock disconnect
This commit is contained in:
parent
34cf7c1a01
commit
a58d9036bc
2 changed files with 26 additions and 0 deletions
|
@ -1057,6 +1057,10 @@ static unsigned PIT_DoCheckThing(mobj_t *thing)
|
|||
P_SetTarget(&tmthing->tracer, thing);
|
||||
if (!P_IsObjectOnGround(thing))
|
||||
thing->momz += tmthing->momz;
|
||||
|
||||
thing->extravalue1 = thing->flags2;
|
||||
thing->extravalue2 = thing->eflags;
|
||||
|
||||
return CHECKTHING_COLLIDE;
|
||||
}
|
||||
}
|
||||
|
|
22
src/p_user.c
22
src/p_user.c
|
@ -1089,6 +1089,17 @@ void P_ResetPlayer(player_t *player)
|
|||
else
|
||||
player->mo->tracer->momz += 1;
|
||||
|
||||
// Restore MF2_OBJECTFLIP / MFE_VERTICALFLIP
|
||||
if (player->mo->tracer->extravalue1 & MF2_OBJECTFLIP)
|
||||
player->mo->tracer->flags2 |= MF2_OBJECTFLIP;
|
||||
else
|
||||
player->mo->tracer->flags2 &= ~MF2_OBJECTFLIP;
|
||||
|
||||
if (player->mo->tracer->extravalue2 & MFE_VERTICALFLIP)
|
||||
player->mo->tracer->eflags |= MFE_VERTICALFLIP;
|
||||
else
|
||||
player->mo->tracer->eflags &= ~MFE_VERTICALFLIP;
|
||||
|
||||
P_SetTarget(&player->mo->tracer->tracer, NULL);
|
||||
}
|
||||
P_SetTarget(&player->mo->tracer, NULL);
|
||||
|
@ -4574,6 +4585,17 @@ void P_DoJump(player_t *player, boolean soundandstate, boolean allowflip)
|
|||
else
|
||||
player->mo->tracer->momz += 1;
|
||||
|
||||
// Restore MF2_OBJECTFLIP / MFE_VERTICALFLIP
|
||||
if (player->mo->tracer->extravalue1 & MF2_OBJECTFLIP)
|
||||
player->mo->tracer->flags2 |= MF2_OBJECTFLIP;
|
||||
else
|
||||
player->mo->tracer->flags2 &= ~MF2_OBJECTFLIP;
|
||||
|
||||
if (player->mo->tracer->extravalue2 & MFE_VERTICALFLIP)
|
||||
player->mo->tracer->eflags |= MFE_VERTICALFLIP;
|
||||
else
|
||||
player->mo->tracer->eflags &= ~MFE_VERTICALFLIP;
|
||||
|
||||
player->mo->tracer->flags |= MF_PUSHABLE;
|
||||
P_SetTarget(&player->mo->tracer->tracer, NULL);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue