All pastes #637184 Raw Edit

Something

public c v1 · immutable
#637184 ·published 2007-07-28 17:12 UTC
rendered paste body
/** * @brief * @note Think function * @sa LET_Projectile */void LET_ProjectileAutoHide (le_t *le){	int i;	le_t *actors;	if (!le->ptl)		return;		/* check whether any of our actors can see this le */	for (i = 0, actors = LEs; i < numLEs; i++, actors++) {		if (!actors->inuse || actors->invis || le->team != cls.team)			continue;		if (actors->type == ET_ACTOR || actors->type == ET_ACTOR2x2) {			/* at least one of our actors can see this */			if (CM_TestLine(le->origin, actors->origin))				return;		}	}	/* hide the particle */	le->ptl->invis = qtrue;}