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

# Conflicts:
#	src/p_user.c
This commit is contained in:
toaster 2022-03-18 13:42:57 +00:00
parent 3c83508646
commit babf630587

View file

@ -1158,6 +1158,8 @@ mobj_t *P_SpawnGhostMobj(mobj_t *mobj)
{ {
mobj_t *ghost = P_SpawnMobj(mobj->x, mobj->y, mobj->z, MT_GHOST); mobj_t *ghost = P_SpawnMobj(mobj->x, mobj->y, mobj->z, MT_GHOST);
P_SetTarget(&ghost->target, mobj);
P_SetScale(ghost, mobj->scale); P_SetScale(ghost, mobj->scale);
ghost->destscale = mobj->scale; ghost->destscale = mobj->scale;