- 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
parent 417779440d
commit e7e79e27ff
3 changed files with 11 additions and 3 deletions

View File

@ -1,4 +1,12 @@
July 10, 2009
July 12, 2009 (Changes by Graf Zahl)
- 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'.
July 11, 2009 (Changes by Graf Zahl)
- Fixed: The 'kill' cheat set the player to nonshootable even if it did not
succeed.
July 10, 2009
- Added joystick config loading and saving support; moved generic joystick
interfaces to m_joy.h.

View File

@ -276,7 +276,7 @@ CCMD (idclev)
// So be it.
Printf ("%s\n", GStrings("STSTR_CLEV"));
G_DeferedInitNew (mapname);
players[0].health = 0; // Force reset
//players[0].health = 0; // Force reset
}
}

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;
}
}