From bdbd79dd4109772694acd4eeeed90d5c629a1bb9 Mon Sep 17 00:00:00 2001 From: Sally Coolatta Date: Fri, 2 Dec 2022 04:12:04 -0500 Subject: [PATCH] Fix Egg Capsule interp --- src/p_mobj.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/p_mobj.c b/src/p_mobj.c index 0613d816c..91fbbfa52 100644 --- a/src/p_mobj.c +++ b/src/p_mobj.c @@ -9156,9 +9156,9 @@ static boolean P_MobjRegularThink(mobj_t *mobj) // Move each piece to the proper position while (cur && !P_MobjWasRemoved(cur)) { - fixed_t newx = mobj->x; - fixed_t newy = mobj->y; - fixed_t newz = bottom; + fixed_t newx = mobj->x + mobj->momx; + fixed_t newy = mobj->y + mobj->momy; + fixed_t newz = bottom + mobj->momz; statenum_t state = (statenum_t)(cur->state-states); cur->scale = mobj->scale; @@ -9202,7 +9202,9 @@ static boolean P_MobjRegularThink(mobj_t *mobj) 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; }