mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-14 08:30:50 +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));
|
RealPickup = static_cast<AInventory *>(Spawn (type, x, y, z, NO_REPLACE));
|
||||||
if (RealPickup != NULL)
|
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))
|
if (!(flags & MF_DROPPED))
|
||||||
{
|
{
|
||||||
RealPickup->flags &= ~MF_DROPPED;
|
RealPickup->flags &= ~MF_DROPPED;
|
||||||
|
|
Loading…
Reference in a new issue