- added GZDoom's option not to count monsters in E1M8-style end of level sectors, but controlled by a dmflag.

SVN r3267 (trunk)
This commit is contained in:
Christoph Oelckers 2011-07-07 21:55:55 +00:00
commit ba661308d4
4 changed files with 21 additions and 0 deletions

View file

@ -3928,6 +3928,24 @@ void P_SetupLevel (char *lumpname, int position)
}
}
// Don't count monsters in end-of-level sectors if option is on
if (dmflags2 & DF2_NOCOUNTENDMONST)
{
TThinkerIterator<AActor> it;
AActor * mo;
while ((mo=it.Next()))
{
if (mo->flags & MF_COUNTKILL)
{
if (mo->Sector->special == dDamage_End)
{
mo->ClearCounters();
}
}
}
}
T_PreprocessScripts(); // preprocess FraggleScript scripts
// build subsector connect matrix