[net] Remove client references from net_main

This is progress towards #23. There are still some references to
host_time and host_client (via nq's server.h), and a lot of references
to sv and svs, but this is definitely a step in the right direction.
This commit is contained in:
Bill Currie 2022-04-06 19:32:55 +09:00
parent b2d4fa0ccf
commit ef574e67d0
13 changed files with 41 additions and 40 deletions

View file

@ -306,7 +306,7 @@ CL_Disconnect_f (void)
void
CL_EstablishConnection (const char *host)
{
if (cls.state == ca_dedicated)
if (net_is_dedicated)
return;
if (cls.demoplayback)
@ -510,8 +510,6 @@ CL_SetState (cactive_t state)
r_funcs->R_ClearState ();
}
switch (state) {
case ca_dedicated:
break;
case ca_disconnected:
CL_ClearState ();
cls.signon = so_none;