// dedicated servers initialize the host but don't parse and set the
// config.cfg cvars
- if (host_initialized & !isDedicated)
+ if (host_initialized && cls.state != ca_dedicated)
{
f = Qopen (va("%s/config.cfg",com_gamedir), "w");
if (!f)
static double frametimetotal = 0, lastservertime = 0;
frametimetotal += host_frametime;
// LordHavoc: cap server at sys_ticrate in listen games
- if (!isDedicated && svs.maxclients > 1 && ((realtime - lastservertime) < sys_ticrate.value))
+ if (cls.state != ca_dedicated && svs.maxclients > 1 && ((realtime - lastservertime) < sys_ticrate.value))
return;
// run the world state
sv.frametime = pr_global_struct->frametime = frametimetotal;
Cbuf_Init ();
Cmd_Init ();
V_Init ();
- Chase_Init ();
COM_Init (host_parms.basedir);
Host_InitLocal ();
W_LoadWadFile ("gfx.wad");
Key_Init ();
Con_Init ();
+ Chase_Init ();
M_Init ();
PR_Init ();
Mod_Init ();
static float cachegamma = -1, cachebrightness = -1, cachecontrast = -1, cachelighthalf = -1;
// LordHavoc: don't mess with gamma tables if running dedicated
- if (isDedicated)
+ if (cls.state == ca_dedicated)
return;
if (!force && vid_gamma.value == cachegamma && vid_brightness.value == cachebrightness && vid_contrast.value == cachecontrast && lighthalf == cachelighthalf)