mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 07:12:02 +00:00
Revert "Fixed: A_SetInventory with an amount of 0 was not truly eliminating the actor."
This reverts commit 02435b46a0
.
This commit is contained in:
parent
109558d74d
commit
0111ec451a
1 changed files with 2 additions and 6 deletions
|
@ -2665,12 +2665,8 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_SetInventory)
|
|||
}
|
||||
else if (amount <= 0)
|
||||
{
|
||||
// Remove it all.
|
||||
if (item)
|
||||
{
|
||||
item->DepleteOrDestroy();
|
||||
res = true;
|
||||
}
|
||||
//Remove it all.
|
||||
res = (mobj->TakeInventory(itemtype, item->Amount, true, false));
|
||||
ACTION_RETURN_BOOL(res);
|
||||
}
|
||||
else if (amount < item->Amount)
|
||||
|
|
Loading…
Reference in a new issue