- started replacing direct references to class AInventory.
The easiest part was the type checks which could be changed to the name variant with a global search and replace.
This commit is contained in:
parent
6fd3bea38c
commit
bfcd714186
14 changed files with 19 additions and 19 deletions
|
|
@ -903,12 +903,12 @@ static bool IsActorAMonster(AActor *mo)
|
|||
|
||||
static bool IsActorAnItem(AActor *mo)
|
||||
{
|
||||
return mo->IsKindOf(RUNTIME_CLASS(AInventory)) && mo->flags&MF_SPECIAL;
|
||||
return mo->IsKindOf(NAME_Inventory) && mo->flags&MF_SPECIAL;
|
||||
}
|
||||
|
||||
static bool IsActorACountItem(AActor *mo)
|
||||
{
|
||||
return mo->IsKindOf(RUNTIME_CLASS(AInventory)) && mo->flags&MF_SPECIAL && mo->flags&MF_COUNTITEM;
|
||||
return mo->IsKindOf(NAME_Inventory) && mo->flags&MF_SPECIAL && mo->flags&MF_COUNTITEM;
|
||||
}
|
||||
|
||||
// [SP] for all actors
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue