- Fixed: The 'idclev' cheat set the player's health to 0 which caused the

level to end when in a sector of type 'end level when health below 10'.
- Fixed: The 'kill' cheat set the player to nonshootable even if it did not
  succeed.

SVN r1714 (trunk)
This commit is contained in:
Christoph Oelckers 2009-07-12 07:33:24 +00:00
commit e7e79e27ff
3 changed files with 11 additions and 3 deletions

View file

@ -1043,7 +1043,7 @@ void cht_Suicide (player_t *plyr)
plyr->mo->flags |= MF_SHOOTABLE;
plyr->mo->flags2 &= ~MF2_INVULNERABLE;
P_DamageMobj (plyr->mo, plyr->mo, plyr->mo, 1000000, NAME_Suicide);
plyr->mo->flags &= ~MF_SHOOTABLE;
if (plyr->mo->health <= 0) plyr->mo->flags &= ~MF_SHOOTABLE;
}
}