From 6198c000af510a6c532fed99453c8b3d29bef6bf Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Wed, 21 Aug 2013 22:31:40 -0500 Subject: [PATCH] Fix A_DropItem from merge --- src/thingdef/thingdef_codeptr.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/thingdef/thingdef_codeptr.cpp b/src/thingdef/thingdef_codeptr.cpp index 0114041f23..4cd7258057 100644 --- a/src/thingdef/thingdef_codeptr.cpp +++ b/src/thingdef/thingdef_codeptr.cpp @@ -5213,10 +5213,11 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_SetDamageType) DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_DropItem) { - ACTION_PARAM_START(3); - ACTION_PARAM_CLASS(spawntype, 0); - ACTION_PARAM_INT(amount, 1); - ACTION_PARAM_INT(chance, 2); + PARAM_ACTION_PROLOGUE; + PARAM_CLASS (spawntype, AActor); + PARAM_INT_OPT (amount) { amount = -1; } + PARAM_INT_OPT (chance) { chance = 256; } P_DropItem(self, spawntype, amount, chance); + return 0; }