"actorlist" and "actornum" no longer return already-owned inventory objects

This commit is contained in:
raa-eruanna 2016-09-16 00:47:56 -04:00
parent ac70f77e44
commit 476b727d5d

View file

@ -926,6 +926,9 @@ static bool IsActorACountItem(AActor *mo)
// [SP] for all actors
static bool IsActor(AActor *mo)
{
if (mo->IsKindOf(RUNTIME_CLASS(AInventory)))
return static_cast<AInventory *>(mo)->Owner == NULL; // [SP] Exclude inventory-owned items
else
return true;
}