Strip items when using kartgiveitem

Fixes some annoyances I have when using this command
This commit is contained in:
Sally Coolatta 2022-09-27 15:23:26 -04:00
parent e2b2b7785c
commit fd7cadd566

View file

@ -5304,6 +5304,9 @@ static void Got_GiveItemcmd(UINT8 **cp, INT32 playernum)
return;
}
K_StripItems(&players[playernum]);
player->itemroulette = 0;
players[playernum].itemtype = item;
players[playernum].itemamount = amt;