mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-22 12:11:25 +00:00
Added MTF_NOCOUNT to spawn flags
This commit is contained in:
parent
994550fb00
commit
573b2958c6
3 changed files with 15 additions and 0 deletions
|
@ -418,6 +418,7 @@ enum EMapThingFlags
|
||||||
|
|
||||||
MTF_SECRET = 0x080000, // Secret pickup
|
MTF_SECRET = 0x080000, // Secret pickup
|
||||||
MTF_NOINFIGHTING = 0x100000,
|
MTF_NOINFIGHTING = 0x100000,
|
||||||
|
MTF_NOCOUNT = 0x200000, // Removes COUNTKILL/COUNTITEM
|
||||||
|
|
||||||
// BOOM and DOOM compatible versions of some of the above
|
// BOOM and DOOM compatible versions of some of the above
|
||||||
|
|
||||||
|
|
|
@ -4664,6 +4664,19 @@ void AActor::HandleSpawnFlags ()
|
||||||
Level->total_secrets++;
|
Level->total_secrets++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (SpawnFlags & MTF_NOCOUNT)
|
||||||
|
{
|
||||||
|
if (flags & MF_COUNTKILL)
|
||||||
|
{
|
||||||
|
flags &= ~MF_COUNTKILL;
|
||||||
|
Level->total_monsters--;
|
||||||
|
}
|
||||||
|
if (flags & MF_COUNTITEM)
|
||||||
|
{
|
||||||
|
flags &= ~MF_COUNTITEM;
|
||||||
|
Level->total_items--;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
DEFINE_ACTION_FUNCTION(AActor, HandleSpawnFlags)
|
DEFINE_ACTION_FUNCTION(AActor, HandleSpawnFlags)
|
||||||
|
|
|
@ -997,6 +997,7 @@ enum EMapThingFlags
|
||||||
|
|
||||||
MTF_SECRET = 0x080000, // Secret pickup
|
MTF_SECRET = 0x080000, // Secret pickup
|
||||||
MTF_NOINFIGHTING = 0x100000,
|
MTF_NOINFIGHTING = 0x100000,
|
||||||
|
MTF_NOCOUNT = 0x200000, // Removes COUNTKILL/COUNTITEM
|
||||||
};
|
};
|
||||||
|
|
||||||
enum ESkillProperty
|
enum ESkillProperty
|
||||||
|
|
Loading…
Reference in a new issue