- Added TELEFRAG_DAMAGE constant, and changed the two places that still used

1000 as the threshold for god mode damage to use it instead. (Players with
  MF2_INVULNERABLE set already used 1000000 as their threshold.)


SVN r1755 (trunk)
This commit is contained in:
Randy Heit 2009-08-07 03:57:03 +00:00
commit 16846fe36d
12 changed files with 29 additions and 32 deletions

View file

@ -142,7 +142,7 @@ bool CheckIfExitIsGood (AActor *self, level_info_t *info)
// Is this a deathmatch game and we're not allowed to exit?
if ((deathmatch || alwaysapplydmflags) && (dmflags & DF_NO_EXIT))
{
P_DamageMobj (self, self, self, 1000000, NAME_Exit);
P_DamageMobj (self, self, self, TELEFRAG_DAMAGE, NAME_Exit);
return false;
}
// Is this a singleplayer game and the next map is part of the same hub and we're dead?