mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-10 06:31:56 +00:00
Single player support.
This commit is contained in:
parent
bc0219d36d
commit
0bce28330b
1 changed files with 12 additions and 0 deletions
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in a new issue