mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 09:11:48 +00:00
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:
commit
5cab285b2c
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