Strip items when using kartgiveitem
Fixes some annoyances I have when using this command
This commit is contained in:
parent
be1308b0cf
commit
71283a4adb
1 changed files with 3 additions and 0 deletions
|
|
@ -5359,6 +5359,9 @@ static void Got_GiveItemcmd(UINT8 **cp, INT32 playernum)
|
|||
return;
|
||||
}
|
||||
|
||||
K_StripItems(&players[playernum]);
|
||||
players[playernum].itemroulette = 0;
|
||||
|
||||
players[playernum].itemtype = item;
|
||||
players[playernum].itemamount = amt;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue