mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-28 23:11:58 +00:00
- Fixed: The nextmap and nextsecret ccmds should be disabled in network games.
SVN r3805 (trunk)
This commit is contained in:
parent
6e81216bbd
commit
0d631a9075
1 changed files with 18 additions and 4 deletions
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue