/** * @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; }