- 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
|
|
@ -2249,11 +2249,11 @@ void Net_DoCommand (int type, uint8_t **stream, int player)
|
|||
case DEM_INVUSEALL:
|
||||
if (gamestate == GS_LEVEL && !paused)
|
||||
{
|
||||
AInventory *item = players[player].mo->Inventory;
|
||||
auto item = players[player].mo->Inventory;
|
||||
auto pitype = PClass::FindActor(NAME_PuzzleItem);
|
||||
while (item != NULL)
|
||||
{
|
||||
AInventory *next = item->Inventory;
|
||||
auto next = item->Inventory;
|
||||
IFVIRTUALPTR(item, AInventory, UseAll)
|
||||
{
|
||||
VMValue param[] = { item, players[player].mo };
|
||||
|
|
@ -2275,7 +2275,7 @@ void Net_DoCommand (int type, uint8_t **stream, int player)
|
|||
if (gamestate == GS_LEVEL && !paused
|
||||
&& players[player].playerstate != PST_DEAD)
|
||||
{
|
||||
AInventory *item = players[player].mo->Inventory;
|
||||
auto item = players[player].mo->Inventory;
|
||||
while (item != NULL && item->InventoryID != which)
|
||||
{
|
||||
item = item->Inventory;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue