Merge branch 'make-ghosts-target-origin' into 'next'

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

Closes #517

See merge request STJr/SRB2!1358
This commit is contained in:
Lach 2021-05-10 08:40:41 -04:00
commit 5cab285b2c

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;