mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-20 19:12:07 +00:00
Fixed counters not clearing when using shared/local pickups
This commit is contained in:
parent
0d43272c8f
commit
1b20c92ca5
1 changed files with 4 additions and 0 deletions
|
@ -281,6 +281,7 @@ class Inventory : Actor
|
|||
if (!item || item == self)
|
||||
continue;
|
||||
|
||||
item.ClearCounters();
|
||||
item.bSharingItem = true;
|
||||
item.bDropped = item.bNeverLocal = true;
|
||||
if (!item.CallTryPickup(players[i].mo))
|
||||
|
@ -847,6 +848,8 @@ class Inventory : Actor
|
|||
return;
|
||||
|
||||
localPickUp = give != self;
|
||||
if (localPickUp)
|
||||
give.ClearCounters();
|
||||
}
|
||||
|
||||
bool res;
|
||||
|
@ -1124,6 +1127,7 @@ class Inventory : Actor
|
|||
int pNum = client.PlayerNumber();
|
||||
pickedUp[pNum] = true;
|
||||
DisableLocalRendering(pNum, true);
|
||||
bCountItem = bCountSecret = false;
|
||||
}
|
||||
|
||||
// Force spawn a new version of the item. This needs to use CreateCopy so that
|
||||
|
|
Loading…
Reference in a new issue