- started removing literal references of AInventory, so far only simple stuff.
This commit is contained in:
parent
99a87f62b6
commit
3d28006eda
13 changed files with 48 additions and 50 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue