Use IsKindOf instead of MF_SPECIAL to check for an inventory item.

This commit is contained in:
MajorCooke 2015-07-22 17:12:42 -05:00
parent b4f05ee89b
commit 41b4df71c2

View file

@ -5079,7 +5079,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_RadiusGive)
}
}
bool itemPass = !!((flags & RGF_ITEMS) && thing->flags & MF_SPECIAL);
bool itemPass = !!((flags & RGF_ITEMS) && thing->IsKindOf(RUNTIME_CLASS(AInventory)));
bool missilePass = !!((flags & RGF_MISSILES) && thing->flags & MF_MISSILE);
if (selfPass || monsterPass || corpsePass || killedPass || itemPass || objectPass || missilePass || playerPass || voodooPass)