engine/EngineServerEntity.c
/*	Marks the edict as free
	FIXME: walk all entities and NULL out references to this entity
*/
Marks the edict as free
FIXME: walk all entities and NULL out references to this entity
Marks the edict as free FIXME : walk all entities and NULL out references to this entity
void ED_Free(ServerEntity_t *ed)
{
	SV_UnlinkEdict(ed);		
	ed->free = true;
	ed->v.model			= 0;
	ed->v.bTakeDamage	= false;
	ed->v.modelindex	= 0;
	ed->v.colormap		= 0;
	ed->Model.iSkin		= 0;
	ed->v.frame			= 0;
	ed->v.dNextThink	= -1;
	ed->Physics.iSolid	= SOLID_NOT;
	ed->Model.fScale	= 1.0f;
	ed->alpha			= ENTALPHA_DEFAULT; 
	Math_VectorCopy(g_mvOrigin3f,ed->v.origin);
	Math_VectorCopy(g_mvOrigin3f,ed->v.angles);
	ed->fFreeTime = sv.time;
}
void ED_Free ( ServerEntity_t * ed ) { SV_UnlinkEdict ( ed ) ; ed -> free = true ; ed -> v . model = 0 ; ed -> v . bTakeDamage = false ; ed -> v . modelindex = 0 ; ed -> v . colormap = 0 ; ed -> Model . iSkin = 0 ; ed -> v . frame = 0 ; ed -> v . dNextThink = -1 ; ed -> Physics . iSolid = SOLID_NOT ; ed -> Model . fScale = 1.0f ; ed -> alpha = ENTALPHA_DEFAULT ; Math_VectorCopy ( g_mvOrigin3f , ed -> v . origin ) ; Math_VectorCopy ( g_mvOrigin3f , ed -> v . angles ) ; ed -> fFreeTime = sv . time ; }
Marks the edict as free
FIXME: walk all entities and NULL out references to this entity
Marks the edict as free FIXME : walk all entities and NULL out references to this entity
// unlink from world bsp //johnfitz -- reset alpha for next entity