From babf63058771e49f8d3e89e492f1c87152fd143d Mon Sep 17 00:00:00 2001 From: toaster Date: Fri, 18 Mar 2022 13:42:57 +0000 Subject: [PATCH] Set the target of a spawned ghost to where it came from. # Conflicts: # src/p_user.c --- src/p_user.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/p_user.c b/src/p_user.c index e8e39009e..39a1afc9f 100644 --- a/src/p_user.c +++ b/src/p_user.c @@ -1158,6 +1158,8 @@ mobj_t *P_SpawnGhostMobj(mobj_t *mobj) { mobj_t *ghost = P_SpawnMobj(mobj->x, mobj->y, mobj->z, MT_GHOST); + P_SetTarget(&ghost->target, mobj); + P_SetScale(ghost, mobj->scale); ghost->destscale = mobj->scale;