mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-24 04:51:41 +00:00
- fixed: Items spawned internally by ADehackedPickup::TryPickup must not count towards item statistics.
SVN r2204 (trunk)
This commit is contained in:
parent
88269d5d60
commit
593a050778
1 changed files with 6 additions and 0 deletions
|
@ -2894,6 +2894,12 @@ bool ADehackedPickup::TryPickup (AActor *&toucher)
|
|||
RealPickup = static_cast<AInventory *>(Spawn (type, x, y, z, NO_REPLACE));
|
||||
if (RealPickup != NULL)
|
||||
{
|
||||
// The internally spawned item should never count towards statistics.
|
||||
if (RealPickup->flags & MF_COUNTITEM)
|
||||
{
|
||||
RealPickup->flags &= ~MF_COUNTITEM;
|
||||
level.total_items--;
|
||||
}
|
||||
if (!(flags & MF_DROPPED))
|
||||
{
|
||||
RealPickup->flags &= ~MF_DROPPED;
|
||||
|
|
Loading…
Reference in a new issue