mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-05-31 09:21:36 +00:00
Merge remote-tracking branch 'remotes/origin/master' into zscript
This commit is contained in:
commit
85ff172ee3
18 changed files with 879 additions and 592 deletions
|
@ -2495,8 +2495,12 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_SetInventory)
|
|||
}
|
||||
else if (amount <= 0)
|
||||
{
|
||||
//Remove it all.
|
||||
res = (mobj->TakeInventory(itemtype, item->Amount, true, false));
|
||||
// Remove it all.
|
||||
if (item)
|
||||
{
|
||||
item->DepleteOrDestroy();
|
||||
res = true;
|
||||
}
|
||||
ACTION_RETURN_BOOL(res);
|
||||
}
|
||||
else if (amount < item->Amount)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue