0
0
Fork 0
mirror of https://git.do.srb2.org/STJr/SRB2.git synced 2025-04-18 16:30:58 +00:00

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

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

Closes 

See merge request 
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;