Added MTF_NOCOUNT to spawn flags

This commit is contained in:
PaulyB 2020-04-24 19:16:06 -07:00 committed by Christoph Oelckers
commit 573b2958c6
3 changed files with 15 additions and 0 deletions

View file

@ -4664,6 +4664,19 @@ void AActor::HandleSpawnFlags ()
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)