From 9fffe9661653be32654bbb779c9b3e70d6b2c324 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Wed, 5 Oct 2022 15:36:17 +0300 Subject: [PATCH 26/26] Update is_hiding_unit() function header See osdn #45777 Signed-off-by: Marko Lindqvist --- common/unit.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/common/unit.c b/common/unit.c index 5c9cbc8426..8d0f33ebdc 100644 --- a/common/unit.c +++ b/common/unit.c @@ -384,11 +384,10 @@ bool is_field_unit(const struct unit *punit) return unit_has_type_flag(punit, UTYF_FIELDUNIT); } - /**********************************************************************//** Is the unit one that is invisible on the map. A unit is invisible if - it has the UTYF_PARTIAL_INVIS flag or if it transported by a unit with - this flag. + it's vision layer is either V_INVIS or V_SUBSURFACE, or if it's + transported by such unit. FIXME: Should the transports recurse all the way? **************************************************************************/ -- 2.35.1