Remove some redundancies from the last commit

This commit is contained in:
TehRealSalt 2017-10-23 18:54:10 -04:00
parent 4c877a6490
commit 4efda9b830

View file

@ -8091,7 +8091,11 @@ void A_ItemPop(mobj_t *actor)
mobj_t *remains; mobj_t *remains;
if (!(actor->target && actor->target->player && P_CanPickupItem(actor->target->player, false))) if (!(actor->target && actor->target->player && P_CanPickupItem(actor->target->player, false)))
{
if (cv_debug && !(actor->target && actor->target->player))
CONS_Printf("ERROR: Powerup has no target!\n");
return; return;
}
// de-solidify // de-solidify
//P_UnsetThingPosition(actor); //P_UnsetThingPosition(actor);
@ -8126,10 +8130,7 @@ void A_ItemPop(mobj_t *actor)
return; return;
} }
if (actor->target && actor->target->player) actor->target->player->kartstuff[k_itemroulette] = 1;
actor->target->player->kartstuff[k_itemroulette] = 1;
else if (cv_debug && !(actor->target && actor->target->player))
CONS_Printf("ERROR: Powerup has no target!\n");
remains->flags2 &= ~MF2_AMBUSH; remains->flags2 &= ~MF2_AMBUSH;