- Fixed: The nextmap and nextsecret ccmds should be disabled in network games.

SVN r3805 (trunk)
This commit is contained in:
Randy Heit 2012-08-04 02:42:16 +00:00
parent 6e81216bbd
commit 0d631a9075

View file

@ -949,9 +949,16 @@ CCMD(thaw)
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
CCMD(nextmap) CCMD(nextmap)
{ {
char * next=NULL; if (netgame)
{
Printf ("Use "TEXTCOLOR_BOLD"changemap"TEXTCOLOR_NORMAL" instead. "TEXTCOLOR_BOLD"Nextmap"
TEXTCOLOR_NORMAL" is for single-player only.\n");
return;
}
char *next = NULL;
if (*level.nextmap) next = level.nextmap; if (*level.nextmap)
next = level.nextmap;
if (next != NULL && strncmp(next, "enDSeQ", 6)) if (next != NULL && strncmp(next, "enDSeQ", 6))
{ {
@ -970,9 +977,16 @@ CCMD(nextmap)
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
CCMD(nextsecret) CCMD(nextsecret)
{ {
char * next=NULL; if (netgame)
{
Printf ("Use "TEXTCOLOR_BOLD"changemap"TEXTCOLOR_NORMAL" instead. "TEXTCOLOR_BOLD"Nextsecret"
TEXTCOLOR_NORMAL" is for single-player only.\n");
return;
}
char *next = NULL;
if (*level.secretmap) next = level.secretmap; if (*level.secretmap)
next = level.secretmap;
if (next != NULL && strncmp(next, "enDSeQ", 6)) if (next != NULL && strncmp(next, "enDSeQ", 6))
{ {