SVN r51 (trunk)

This commit is contained in:
Christoph Oelckers 2006-04-17 13:53:34 +00:00
commit 36e37becb5
14 changed files with 167 additions and 41 deletions

View file

@ -1354,14 +1354,22 @@ BOOL CheckCheatmode ();
CCMD (kill)
{
if (argv.argc() > 1 && !stricmp (argv[1], "monsters"))
if (argv.argc() > 1)
{
// Kill all the monsters
if (CheckCheatmode ())
return;
if (!stricmp (argv[1], "monsters"))
{
// Kill all the monsters
if (CheckCheatmode ())
return;
Net_WriteByte (DEM_GENERICCHEAT);
Net_WriteByte (CHT_MASSACRE);
Net_WriteByte (DEM_GENERICCHEAT);
Net_WriteByte (CHT_MASSACRE);
}
else
{
Printf("cannot kill '%s'\n", argv[1]);
return;
}
}
else
{