mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-05-31 09:21:36 +00:00
Merge branch 'master' into zscript
This commit is contained in:
commit
d1f5d916c2
19 changed files with 64 additions and 96 deletions
|
@ -2500,12 +2500,8 @@ DEFINE_ACTION_FUNCTION(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…
Add table
Add a link
Reference in a new issue