"have_ent" is now modified really only if "detect_ent" is set.