engine/EngineClientParse.c
/*	This error checks and tracks the total number of entities.
*/
This error checks and tracks the total number of entities.
This error checks and tracks the total number of entities .
entity_t	*CL_EntityNum (int num)
{
	if (num < 0)
		Host_Error ("CL_EntityNum: %i is an invalid number",num);
	if (num >= cl.num_entities)
	{
		if (num >= cl_max_edicts) fitz -- no more MAX_EDICTS
			Host_Error ("CL_EntityNum: %i is an invalid number",num);
		while (cl.num_entities<=num)
		{
			cl_entities[cl.num_entities].colormap = 0;	
			cl_entities[cl.num_entities].lerpflags |= LERP_RESETMOVE|LERP_RESETANIM; fitz
			cl.num_entities++;
		}
	}
	return &cl_entities[num];
}
entity_t * CL_EntityNum ( int num ) { if ( num < 0 ) Host_Error ( " " , num ) ; if ( num >= cl . num_entities ) { if ( num >= cl_max_edicts ) Host_Error ( " " , num ) ; while ( cl . num_entities <= num ) { cl_entities [ cl . num_entities ] . colormap = 0 ; cl_entities [ cl . num_entities ] . lerpflags |= LERP_RESETMOVE | LERP_RESETANIM ; cl . num_entities ++ ; } } return & cl_entities [ num ] ; }
This error checks and tracks the total number of entities.
This error checks and tracks the total number of entities .
//johnfitz -- check minimum number too //john //johnfitz -- no more MAX_EDICTS // Obsolete //johnfitz