- started removing literal references of AInventory, so far only simple stuff.

This commit is contained in:
Christoph Oelckers 2018-12-04 00:41:39 +01:00
commit 3d28006eda
13 changed files with 48 additions and 50 deletions

View file

@ -1733,7 +1733,7 @@ void P_WriteACSVars(FSerializer &arc)
static bool DoUseInv (AActor *actor, PClassActor *info)
{
AInventory *item = actor->FindInventory (info);
auto item = actor->FindInventory (info);
if (item != NULL)
{
player_t* const player = actor->player;
@ -1837,7 +1837,7 @@ int CheckInventory (AActor *activator, const char *type, bool max)
return 0;
}
AInventory *item = activator->FindInventory (info);
auto item = activator->FindInventory (info);
if (max)
{
@ -9357,7 +9357,7 @@ scriptwait:
}
else
{
STACK(1) = ((AInventory *)GetDefaultByType (type))->IntVar(NAME_MaxAmount);
STACK(1) = GetDefaultByType (type)->IntVar(NAME_MaxAmount);
}
}
else