- Added Karate Chris's new DMFlags submission.
SVN r1333 (trunk)
This commit is contained in:
parent
37d056c041
commit
8f686a5e02
11 changed files with 123 additions and 10 deletions
|
|
@ -135,6 +135,10 @@ bool CheckIfExitIsGood (AActor *self, level_info_t *info)
|
|||
if (self == NULL)
|
||||
return true;
|
||||
|
||||
// We must kill all monsters to exit the level.
|
||||
if ((dmflags2 & DF2_KILL_MONSTERS) && level.killed_monsters != level.total_monsters)
|
||||
return false;
|
||||
|
||||
// Is this a deathmatch game and we're not allowed to exit?
|
||||
if ((deathmatch || alwaysapplydmflags) && (dmflags & DF_NO_EXIT))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue