Set the target of a spawned ghost to where it came from.

This commit is contained in:
GoldenTails 2020-12-27 00:21:09 -06:00
parent 8c97583779
commit 50d46e1fa6

View file

@ -2016,6 +2016,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;