/* * ===================== * CL_ClearState * * ===================== */ public static void CL_ClearState() { int i; if (!server.sv.active) { host.Host_ClearMemory(); } // wipe the entire cl structure cl = new client_state_t(); common.SZ_Clear(cls.message); // // allocate the efrags and chain together into a free list // cl.free_efrags = cl_efrags[0]; for (i = 0; i < MAX_EFRAGS - 1; i++) { cl_efrags[i].entnext = cl_efrags[i + 1]; } cl_efrags[i].entnext = null; }
/* ===================== CL_ClearState ===================== */ public static void CL_ClearState() { int i; if (!server.sv.active) host.Host_ClearMemory(); // wipe the entire cl structure cl = new client_state_t(); common.SZ_Clear(cls.message); // // allocate the efrags and chain together into a free list // cl.free_efrags = cl_efrags[0]; for (i = 0; i < MAX_EFRAGS - 1; i++) cl_efrags[i].entnext = cl_efrags[i + 1]; cl_efrags[i].entnext = null; }