mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-11-17 10:11:12 +00:00
Remove some redundancies from the last commit
This commit is contained in:
parent
4c877a6490
commit
4efda9b830
1 changed files with 5 additions and 4 deletions
|
@ -8091,7 +8091,11 @@ void A_ItemPop(mobj_t *actor)
|
|||
mobj_t *remains;
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
// de-solidify
|
||||
//P_UnsetThingPosition(actor);
|
||||
|
@ -8126,10 +8130,7 @@ void A_ItemPop(mobj_t *actor)
|
|||
return;
|
||||
}
|
||||
|
||||
if (actor->target && actor->target->player)
|
||||
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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue