From 0d631a9075af6e6861e9d0baf579b26db97ca2a7 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Sat, 4 Aug 2012 02:42:16 +0000 Subject: [PATCH] - Fixed: The nextmap and nextsecret ccmds should be disabled in network games. SVN r3805 (trunk) --- src/c_cmds.cpp | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/src/c_cmds.cpp b/src/c_cmds.cpp index 56a9bcf36..9c7b781d2 100644 --- a/src/c_cmds.cpp +++ b/src/c_cmds.cpp @@ -949,9 +949,16 @@ CCMD(thaw) //----------------------------------------------------------------------------- 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)) { @@ -970,9 +977,16 @@ CCMD(nextmap) //----------------------------------------------------------------------------- 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)) {