From 59593e57c6f04f5454481fe9756f491804738288 Mon Sep 17 00:00:00 2001 From: MajorCooke Date: Thu, 14 Jul 2016 09:27:29 -0500 Subject: [PATCH] - Fixed: RGF_ITEMS wasn't considered a part of the RGF_MASK flag. --- src/thingdef/thingdef_codeptr.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/thingdef/thingdef_codeptr.cpp b/src/thingdef/thingdef_codeptr.cpp index 4f4d887794..25d68fc8fe 100644 --- a/src/thingdef/thingdef_codeptr.cpp +++ b/src/thingdef/thingdef_codeptr.cpp @@ -5669,7 +5669,9 @@ enum RadiusGiveFlags RGF_MONSTERS | RGF_OBJECTS | RGF_VOODOO | - RGF_CORPSES | RGF_MISSILES, + RGF_CORPSES | + RGF_MISSILES | + RGF_ITEMS, }; static bool DoRadiusGive(AActor *self, AActor *thing, PClassActor *item, int amount, double distance, int flags, PClassActor *filter, FName species, double mindist) @@ -5681,7 +5683,7 @@ static bool DoRadiusGive(AActor *self, AActor *thing, PClassActor *item, int amo if (!(flags & RGF_GIVESELF)) return false; } - else if (thing->flags & MF_MISSILE) + if (thing->flags & MF_MISSILE) { if (!missilePass) return false;