mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Fix soft landing mobj not being properly flipped
This commit is contained in:
parent
bdb15028a1
commit
4439ce8940
2 changed files with 3 additions and 3 deletions
|
|
@ -11636,7 +11636,7 @@ void K_KartEbrakeVisuals(player_t *p)
|
|||
{
|
||||
if (p->ebrakefor % 20 == 0)
|
||||
{
|
||||
wave = P_SpawnMobj(p->mo->x, p->mo->y, p->mo->floorz, MT_SOFTLANDING);
|
||||
wave = P_SpawnMobj(p->mo->x, p->mo->y, P_GetMobjGround(p->mo), MT_SOFTLANDING);
|
||||
P_InstaScale(wave, p->mo->scale);
|
||||
P_SetTarget(&wave->target, p->mo);
|
||||
P_SetTarget(&wave->owner, p->mo);
|
||||
|
|
|
|||
|
|
@ -10552,8 +10552,8 @@ void P_SceneryThinker(mobj_t *mobj)
|
|||
if (!P_MobjWasRemoved(mobj->target))
|
||||
{
|
||||
// Cast like a shadow on the ground
|
||||
P_MoveOrigin(mobj, mobj->target->x, mobj->target->y, mobj->target->floorz);
|
||||
mobj->standingslope = mobj->target->standingslope;
|
||||
P_MoveOrigin(mobj, mobj->target->x, mobj->target->y, P_GetMobjGround(mobj->target));
|
||||
mobj->standingslope = P_IsObjectOnGround(mobj->target) ? mobj->target->standingslope : NULL;
|
||||
|
||||
if (!P_IsObjectOnGround(mobj->target) && mobj->target->momz < -24 * mapobjectscale)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue