longjmp (host_abortserver, 1);
}
-mempool_t *sv_clients_mempool = NULL;
-
void Host_ServerOptions (void)
{
int i, numplayers;
Cvar_SetValueQuick(&deathmatch, 1);
svs.maxclients = numplayers;
- sv_clients_mempool = Mem_AllocPool("server clients", 0, NULL);
- svs.clients = Mem_Alloc(sv_clients_mempool, sizeof(client_t) * svs.maxclients);
+ svs.clients = Mem_Alloc(sv_mempool, sizeof(client_t) * svs.maxclients);
}
/*
time2 = Sys_DoubleTime();
// update audio
- if (cls.signon == SIGNONS && cl.viewentity >= 0 && cl.viewentity < MAX_EDICTS && cl_entities[cl.viewentity].state_current.active)
+ if (cls.signon == SIGNONS && cl_entities[cl.viewentity].state_current.active)
{
// LordHavoc: this used to use renderer variables (eww)
S_Update(&cl_entities[cl.viewentity].render.matrix);
Cmd_Init();
Memory_Init_Commands();
- R_Modules_Init();
+ Con_Init();
Cbuf_Init();
+ R_Modules_Init();
V_Init();
COM_Init();
- Host_InitLocal();
Key_Init();
- Con_Init();
PR_Init();
PRVM_Init();
Mod_Init();
NetConn_Init();
SV_Init();
+ Host_InitLocal();
Con_Printf("Builddate: %s\n", buildstring);