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:
Ozkan Sezer 2011-12-27 08:27:52 +00:00
parent 07b572b642
commit ca4124194f
2 changed files with 3 additions and 24 deletions

View file

@ -105,19 +105,6 @@ static void Max_Edicts_f (cvar_t *var)
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
@ -274,8 +261,8 @@ void Host_InitLocal (void)
Cvar_RegisterVariable (&noexit, NULL);
Cvar_RegisterVariable (&skill, NULL);
Cvar_RegisterVariable (&developer, NULL);
Cvar_RegisterVariable (&coop, Callback_Coop);
Cvar_RegisterVariable (&deathmatch, Callback_Deathmatch);
Cvar_RegisterVariable (&coop, NULL);
Cvar_RegisterVariable (&deathmatch, NULL);
Cvar_RegisterVariable (&pausable, NULL);

View file

@ -208,17 +208,9 @@ static void MaxPlayers_f (void)
svs.maxclients = n;
if (n == 1)
{
Cvar_Set ("deathmatch", "0");
Cvar_Set ("coop", "0");
}
else
{
if (coop.value)
Cvar_Set ("deathmatch", "0");
else
Cvar_Set ("deathmatch", "1");
}
}