mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Ironman: use P_SetTarget helper where appropriate
This commit is contained in:
parent
0a8e3046e6
commit
7c839e841a
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue