Exemple #1
0
/*
===============
CL_EmitEntities

Builds the visedicts array for cl.time

Made up of: clients, packet_entities, nails, and tents
===============
*/
void CL_EmitEntities (void)
{
	if (cls.state != ca_active)
		return;
	if (!cl.validsequence)
		return;

	cl_oldnumvisedicts = cl_numvisedicts;
	cl_oldvisedicts = cl_visedicts_list[(cls.netchan.incoming_sequence-1)&1];
	cl_visedicts = cl_visedicts_list[cls.netchan.incoming_sequence&1];

	cl_numvisedicts = 0;

	CL_LinkPlayers ();
	CL_LinkPacketEntities ();
	CL_LinkProjectiles ();
	CL_UpdateTEnts ();
}
Exemple #2
0
/*
===============
CL_EmitEntities

Builds the visedicts array for cl.time

Made up of: clients, packet_entities, nails, and tents
===============
*/
void
CL_EmitEntities(physent_stack_t *pestack)
{
    int i;

    if (cls.state != ca_active)
	return;
    if (!cl.validsequence)
	return;

    for (i = 0; i < cl_numvisedicts; i++) {
	saved_visedicts[i].keynum = cl_visedicts[i].keynum;
	VectorCopy(cl_visedicts[i].origin, saved_visedicts[i].origin);
    }
    num_saved_visedicts = cl_numvisedicts;
    cl_numvisedicts = 0;

    CL_LinkPlayers(pestack);
    CL_LinkPacketEntities();
    CL_LinkProjectiles();
    CL_UpdateTEnts();
}