mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-23 11:21:01 +00:00
Set the target of a spawned ghost to where it came from.
This commit is contained in:
parent
8c97583779
commit
50d46e1fa6
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue