mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-12-15 23:21:46 +00:00
Fix A_DropItem from merge
This commit is contained in:
parent
fd9c450c6e
commit
6198c000af
1 changed files with 5 additions and 4 deletions
|
@ -5213,10 +5213,11 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_SetDamageType)
|
||||||
|
|
||||||
DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_DropItem)
|
DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_DropItem)
|
||||||
{
|
{
|
||||||
ACTION_PARAM_START(3);
|
PARAM_ACTION_PROLOGUE;
|
||||||
ACTION_PARAM_CLASS(spawntype, 0);
|
PARAM_CLASS (spawntype, AActor);
|
||||||
ACTION_PARAM_INT(amount, 1);
|
PARAM_INT_OPT (amount) { amount = -1; }
|
||||||
ACTION_PARAM_INT(chance, 2);
|
PARAM_INT_OPT (chance) { chance = 256; }
|
||||||
|
|
||||||
P_DropItem(self, spawntype, amount, chance);
|
P_DropItem(self, spawntype, amount, chance);
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue