mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Set the target of a spawned ghost to where it came from.
# Conflicts: # src/p_user.c
This commit is contained in:
parent
3c83508646
commit
babf630587
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue