- 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
|
|
@ -1831,7 +1831,7 @@ static int CheckInventory (AActor *activator, const char *type, bool max)
|
|||
DPrintf (DMSG_ERROR, "ACS: '%s': Unknown actor class.\n", type);
|
||||
return 0;
|
||||
}
|
||||
else if (!info->IsDescendantOf(RUNTIME_CLASS(AInventory)))
|
||||
else if (!info->IsDescendantOf(NAME_Inventory))
|
||||
{
|
||||
DPrintf(DMSG_ERROR, "ACS: '%s' is not an inventory item.\n", type);
|
||||
return 0;
|
||||
|
|
@ -1845,7 +1845,7 @@ static int CheckInventory (AActor *activator, const char *type, bool max)
|
|||
{
|
||||
return item->MaxAmount;
|
||||
}
|
||||
else if (info != nullptr && info->IsDescendantOf(RUNTIME_CLASS(AInventory)))
|
||||
else if (info != nullptr && info->IsDescendantOf(NAME_Inventory))
|
||||
{
|
||||
return ((AInventory *)GetDefaultByType(info))->MaxAmount;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue