mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-10 01:31:14 +00:00
reverted revision 536 which made coop and deathmatch not to be set at
the same time git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@555 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
07b572b642
commit
ca4124194f
2 changed files with 3 additions and 24 deletions
17
Quake/host.c
17
Quake/host.c
|
@ -105,19 +105,6 @@ static void Max_Edicts_f (cvar_t *var)
|
||||||
oldval = max_edicts.value;
|
oldval = max_edicts.value;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 1999-09-06 deathmatch/coop not at the same time fix by Maddes
|
|
||||||
static void Callback_Deathmatch (cvar_t *var)
|
|
||||||
{
|
|
||||||
if (var->value)
|
|
||||||
Cvar_Set ("coop", "0");
|
|
||||||
}
|
|
||||||
|
|
||||||
static void Callback_Coop (cvar_t *var)
|
|
||||||
{
|
|
||||||
if (var->value)
|
|
||||||
Cvar_Set ("deathmatch", "0");
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
================
|
================
|
||||||
Host_EndGame
|
Host_EndGame
|
||||||
|
@ -274,8 +261,8 @@ void Host_InitLocal (void)
|
||||||
Cvar_RegisterVariable (&noexit, NULL);
|
Cvar_RegisterVariable (&noexit, NULL);
|
||||||
Cvar_RegisterVariable (&skill, NULL);
|
Cvar_RegisterVariable (&skill, NULL);
|
||||||
Cvar_RegisterVariable (&developer, NULL);
|
Cvar_RegisterVariable (&developer, NULL);
|
||||||
Cvar_RegisterVariable (&coop, Callback_Coop);
|
Cvar_RegisterVariable (&coop, NULL);
|
||||||
Cvar_RegisterVariable (&deathmatch, Callback_Deathmatch);
|
Cvar_RegisterVariable (&deathmatch, NULL);
|
||||||
|
|
||||||
Cvar_RegisterVariable (&pausable, NULL);
|
Cvar_RegisterVariable (&pausable, NULL);
|
||||||
|
|
||||||
|
|
|
@ -208,18 +208,10 @@ static void MaxPlayers_f (void)
|
||||||
|
|
||||||
svs.maxclients = n;
|
svs.maxclients = n;
|
||||||
if (n == 1)
|
if (n == 1)
|
||||||
{
|
|
||||||
Cvar_Set ("deathmatch", "0");
|
|
||||||
Cvar_Set ("coop", "0");
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if (coop.value)
|
|
||||||
Cvar_Set ("deathmatch", "0");
|
Cvar_Set ("deathmatch", "0");
|
||||||
else
|
else
|
||||||
Cvar_Set ("deathmatch", "1");
|
Cvar_Set ("deathmatch", "1");
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
static void NET_Port_f (void)
|
static void NET_Port_f (void)
|
||||||
|
|
Loading…
Reference in a new issue