Make player ghostmobjs affine
This commit is contained in:
parent
1e06866a9e
commit
7ad5ce13db
1 changed files with 11 additions and 5 deletions
16
src/p_user.c
16
src/p_user.c
|
|
@ -1261,12 +1261,18 @@ mobj_t *P_SpawnGhostMobjEX(mobj_t *mobj, boolean legacy)
|
|||
if (!(mobj->flags & MF_DONTENCOREMAP))
|
||||
ghost->flags &= ~MF_DONTENCOREMAP;
|
||||
|
||||
if (mobj->player && mobj->player->followmobj)
|
||||
if (mobj->player)
|
||||
{
|
||||
mobj_t *ghost2 = P_SpawnGhostMobj(mobj->player->followmobj);
|
||||
P_SetTarget(&ghost2->tracer, ghost);
|
||||
P_SetTarget(&ghost->tracer, ghost2);
|
||||
ghost2->flags2 |= (mobj->player->followmobj->flags2 & MF2_LINKDRAW);
|
||||
// Players use affine rendering, so match that
|
||||
ghost->renderflags2 |= RF2_AFFINE;
|
||||
|
||||
if(mobj->player->followmobj)
|
||||
{
|
||||
mobj_t *ghost2 = P_SpawnGhostMobj(mobj->player->followmobj);
|
||||
P_SetTarget(&ghost2->tracer, ghost);
|
||||
P_SetTarget(&ghost->tracer, ghost2);
|
||||
ghost2->flags2 |= (mobj->player->followmobj->flags2 & MF2_LINKDRAW);
|
||||
}
|
||||
}
|
||||
|
||||
// Copy interpolation data :)
|
||||
|
|
|
|||
Loading…
Reference in a new issue