mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 15:21:51 +00:00
- fixed: map commands will now take capslock DM/COOP as arguments
This commit is contained in:
parent
f72ebe6768
commit
6755373f46
3 changed files with 8 additions and 8 deletions
|
@ -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.
|
||||
|
|
|
@ -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];
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue