mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-30 16:00:55 +00:00
"actorlist" and "actornum" no longer return already-owned inventory objects
This commit is contained in:
parent
ac70f77e44
commit
476b727d5d
1 changed files with 4 additions and 1 deletions
|
@ -926,7 +926,10 @@ static bool IsActorACountItem(AActor *mo)
|
||||||
// [SP] for all actors
|
// [SP] for all actors
|
||||||
static bool IsActor(AActor *mo)
|
static bool IsActor(AActor *mo)
|
||||||
{
|
{
|
||||||
return true;
|
if (mo->IsKindOf(RUNTIME_CLASS(AInventory)))
|
||||||
|
return static_cast<AInventory *>(mo)->Owner == NULL; // [SP] Exclude inventory-owned items
|
||||||
|
else
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// [SP] modified - now allows showing count only, new arg must be passed. Also now still counts regardless, if lists are printed.
|
// [SP] modified - now allows showing count only, new arg must be passed. Also now still counts regardless, if lists are printed.
|
||||||
|
|
Loading…
Reference in a new issue