if ((rand() & TRANQ_RAND_MASK) < TRANQ_RAND_LEVEL) { objCritters[osid].flags &= ~AI_FLAG_TRANQ; if (CritterProps[CPNUM(objCritters[osid].id)].flags & AI_FLAG_FLYING) apply_gravity_to_one_object(objCritters[osid].id,0); }