Single player support.

This commit is contained in:
Anton E. Gavrilov 2000-03-19 18:40:28 +00:00
parent bc0219d36d
commit 0bce28330b
1 changed files with 12 additions and 0 deletions

View File

@ -312,6 +312,18 @@ void SV_SpawnServer (char *server)
Mod_ClearAll ();
Hunk_FreeToLowMark (host_hunklevel);
//
// make cvars consistant
//
if (coop->value)
Cvar_Set ("deathmatch", "0");
current_skill = (int)(skill->value + 0.5);
if (current_skill < 0)
current_skill = 0;
if (current_skill > 3)
current_skill = 3;
Cvar_Set ("skill", va("%d", (int)current_skill));
// wipe the entire per-level structure
memset (&sv, 0, sizeof(sv));