Removed all remaining references to AInventory

What remains is the class definition and one single reference that will be scriptified.
This commit is contained in:
Christoph Oelckers 2018-12-04 17:11:36 +01:00
commit 9348baeeb1
27 changed files with 74 additions and 89 deletions

View file

@ -2159,15 +2159,14 @@ FUNC(LS_Radius_Quake)
FUNC(LS_UsePuzzleItem)
// UsePuzzleItem (item, script)
{
AInventory *item;
AActor *item;
if (!it) return false;
// Check player's inventory for puzzle item
auto pitype = PClass::FindActor(NAME_PuzzleItem);
for (item = it->Inventory; item != NULL; item = item->Inventory)
{
if (item->IsKindOf (pitype))
if (item->IsKindOf (NAME_PuzzleItem))
{
if (item->IntVar(NAME_PuzzleItemNumber) == arg0)
{