Merge branch 'master' into zscript

This commit is contained in:
Christoph Oelckers 2016-11-23 14:39:14 +01:00
commit d1f5d916c2
19 changed files with 64 additions and 96 deletions

View file

@ -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)