Ironman: use P_SetTarget helper where appropriate

This commit is contained in:
AJ Martinez 2022-11-03 15:05:43 -07:00
parent 0a8e3046e6
commit 7c839e841a
2 changed files with 2 additions and 2 deletions

View file

@ -7630,7 +7630,7 @@ static boolean P_MobjRegularThink(mobj_t *mobj)
}
else if (mobj->extravalue2 < TICRATE/3)
{
mobj->target = NULL;
P_SetTarget(&mobj->target, NULL);
if (mobj->extravalue2 & 1)
mobj->renderflags |= RF_DONTDRAW;
else

View file

@ -369,7 +369,7 @@ void SetRandomFakePlayerSkin(player_t* player, boolean fast)
for (j = 0; j < 6; j++) // 0-3 = sides, 4 = top, 5 = bottom
{
mobj_t *box = P_SpawnMobjFromMobj(parent, 0, 0, 0, MT_MAGICIANBOX);
box->target = parent;
P_SetTarget(&box->target, parent);
box->angle = FixedAngle((baseangle + j*90) * FRACUNIT);
box->flags2 |= MF2_AMBUSH;
if (fast)