mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-30 15:52:09 +00:00
Use IsKindOf instead of MF_SPECIAL to check for an inventory item.
This commit is contained in:
parent
b4f05ee89b
commit
41b4df71c2
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue