- 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:
parent
417779440d
commit
e7e79e27ff
3 changed files with 11 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue