- fixed: map commands will now take capslock DM/COOP as arguments

This commit is contained in:
Rachael Alexanderson 2016-11-01 09:47:01 -04:00
parent 3102668dfa
commit 33637dda23
3 changed files with 8 additions and 8 deletions

View file

@ -71,7 +71,7 @@ extern bool netgame;
// Bot game? Like netgame, but doesn't involve network communication.
extern bool multiplayer;
// [SP] MPMap implementation - invokes fake multiplayer without bots
// [SP] Map dm/coop implementation - invokes fake multiplayer without bots
extern bool multiplayernext;
// Flag: true only if started as net deathmatch.

View file

@ -164,7 +164,7 @@ bool viewactive;
bool netgame; // only true if packets are broadcast
bool multiplayer;
bool multiplayernext = false; // [SP] MPMap implementation
bool multiplayernext = false; // [SP] Map coop/dm implementation
player_t players[MAXPLAYERS];
bool playeringame[MAXPLAYERS];

View file

@ -183,12 +183,12 @@ CCMD (map)
}
else
{
if (argv.argc() > 2 && strcmp(argv[2], "coop") == 0)
if (argv.argc() > 2 && stricmp(argv[2], "coop") == 0)
{
deathmatch = false;
multiplayernext = true;
}
else if (argv.argc() > 2 && strcmp(argv[2], "dm") == 0)
else if (argv.argc() > 2 && stricmp(argv[2], "dm") == 0)
{
deathmatch = true;
multiplayernext = true;
@ -230,12 +230,12 @@ CCMD(recordmap)
}
else
{
if (argv.argc() > 3 && strcmp(argv[3], "coop") == 0)
if (argv.argc() > 3 && stricmp(argv[3], "coop") == 0)
{
deathmatch = false;
multiplayernext = true;
}
else if (argv.argc() > 3 && strcmp(argv[3], "dm") == 0)
else if (argv.argc() > 3 && stricmp(argv[3], "dm") == 0)
{
deathmatch = true;
multiplayernext = true;
@ -280,12 +280,12 @@ CCMD (open)
}
else
{
if (argv.argc() > 2 && strcmp(argv[2], "coop") == 0)
if (argv.argc() > 2 && stricmp(argv[2], "coop") == 0)
{
deathmatch = false;
multiplayernext = true;
}
else if (argv.argc() > 2 && strcmp(argv[2], "dm") == 0)
else if (argv.argc() > 2 && stricmp(argv[2], "dm") == 0)
{
deathmatch = true;
multiplayernext = true;