- added 'kill baddies' cheat - does the same thing as 'kill monsters' only it ignores friendly monsters

This commit is contained in:
Rachael Alexanderson 2017-07-19 15:02:46 -04:00
commit 5918167fb3
5 changed files with 16 additions and 5 deletions

View file

@ -321,8 +321,9 @@ void cht_DoCheat (player_t *player, int cheat)
break;
case CHT_MASSACRE:
case CHT_MASSACRE2:
{
int killcount = P_Massacre ();
int killcount = P_Massacre (cheat == CHT_MASSACRE2);
// killough 3/22/98: make more intelligent about plural
// Ty 03/27/98 - string(s) *not* externalized
mysnprintf (msgbuild, countof(msgbuild), "%d Monster%s Killed", killcount, killcount==1 ? "" : "s");