From 52ad2800d1748a00ab0d72e95b01b34746e6277b Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 28 Sep 2008 07:23:15 +0000 Subject: [PATCH] - Fixed: Dropitem gave incorrect amounts to the item if a probability was set. SVN r1250 (trunk) --- docs/rh-log.txt | 3 +++ src/thingdef/thingdef_properties.cpp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/rh-log.txt b/docs/rh-log.txt index c6914a705..1fb977776 100644 --- a/docs/rh-log.txt +++ b/docs/rh-log.txt @@ -1,3 +1,6 @@ +September 28, 2008 (Changes by Graf Zahl) +- Fixed: Dropitem gave incorrect amounts to the item if a probability was set. + September 27, 2008 (Changes by Graf Zahl) - Fixed: weapon.ammogive2 always gave 2 amounts of ammo. - Fixed: The translation string parser printed a broken error message. diff --git a/src/thingdef/thingdef_properties.cpp b/src/thingdef/thingdef_properties.cpp index ace5c856a..6df7a067a 100644 --- a/src/thingdef/thingdef_properties.cpp +++ b/src/thingdef/thingdef_properties.cpp @@ -824,7 +824,7 @@ DEFINE_PROPERTY(dropitem, S_i_i, Actor) di->probability = prob; if (PROP_PARM_COUNT > 2) { - PROP_INT_PARM(amt, 1); + PROP_INT_PARM(amt, 2); di->amount = amt; } }