- also added the 'amount' parameter to DropInventroy and A_DropInventory script functions.

This commit is contained in:
Christoph Oelckers 2017-02-23 20:55:12 +01:00
commit 73cceea994
3 changed files with 5 additions and 4 deletions

View file

@ -3663,13 +3663,14 @@ DEFINE_ACTION_FUNCTION(AActor, A_DropInventory)
{
PARAM_SELF_PROLOGUE(AActor);
PARAM_CLASS(drop, AInventory);
PARAM_INT_DEF(amount);
if (drop)
{
AInventory *inv = self->FindInventory(drop);
if (inv)
{
self->DropInventory(inv);
self->DropInventory(inv, amount);
}
}
return 0;