Removed more literal references to AInventory.

This commit is contained in:
Christoph Oelckers 2018-12-04 17:00:48 +01:00
commit cd563cc4db
29 changed files with 80 additions and 93 deletions

View file

@ -1282,7 +1282,7 @@ void G_StartTravel ()
if (playeringame[i])
{
AActor *pawn = players[i].mo;
AInventory *inv;
AActor *inv;
players[i].camera = NULL;
// Only living players travel. Dead ones get a new body on the new level.
@ -1321,7 +1321,7 @@ int G_FinishTravel ()
{
TThinkerIterator<APlayerPawn> it (STAT_TRAVELLING);
APlayerPawn *pawn, *pawndup, *oldpawn, *next;
AInventory *inv;
AActor *inv;
FPlayerStart *start;
int pnum;
int failnum = 0;
@ -1409,7 +1409,7 @@ int G_FinishTravel ()
inv->ChangeStatNum (STAT_INVENTORY);
inv->LinkToWorld (nullptr);
IFVIRTUALPTR(inv, AInventory, Travelled)
IFVIRTUALPTRNAME(inv, NAME_Inventory, Travelled)
{
VMValue params[1] = { inv };
VMCall(func, params, 1, nullptr, 0);