mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Fix Egg Capsule interp
This commit is contained in:
parent
b62ed33655
commit
bdbd79dd41
1 changed files with 6 additions and 4 deletions
10
src/p_mobj.c
10
src/p_mobj.c
|
|
@ -9156,9 +9156,9 @@ static boolean P_MobjRegularThink(mobj_t *mobj)
|
||||||
// Move each piece to the proper position
|
// Move each piece to the proper position
|
||||||
while (cur && !P_MobjWasRemoved(cur))
|
while (cur && !P_MobjWasRemoved(cur))
|
||||||
{
|
{
|
||||||
fixed_t newx = mobj->x;
|
fixed_t newx = mobj->x + mobj->momx;
|
||||||
fixed_t newy = mobj->y;
|
fixed_t newy = mobj->y + mobj->momy;
|
||||||
fixed_t newz = bottom;
|
fixed_t newz = bottom + mobj->momz;
|
||||||
statenum_t state = (statenum_t)(cur->state-states);
|
statenum_t state = (statenum_t)(cur->state-states);
|
||||||
|
|
||||||
cur->scale = mobj->scale;
|
cur->scale = mobj->scale;
|
||||||
|
|
@ -9202,7 +9202,9 @@ static boolean P_MobjRegularThink(mobj_t *mobj)
|
||||||
cur->angle = angle + ANGLE_90;
|
cur->angle = angle + ANGLE_90;
|
||||||
}
|
}
|
||||||
|
|
||||||
P_MoveOrigin(cur, newx, newy, newz);
|
cur->momx = newx - cur->x;
|
||||||
|
cur->momy = newy - cur->y;
|
||||||
|
cur->momz = newz - cur->z;
|
||||||
|
|
||||||
cur = cur->hnext;
|
cur = cur->hnext;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue