- 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:
parent
55bb4afac8
commit
ba661308d4
4 changed files with 21 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue