From 09f92b59b8263e2b656cbcfbed24eee2bb36b10b Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 7 Mar 2021 22:44:34 +0000 Subject: [PATCH] hidden: do not occult pieces which aren't can_occultable Signed-off-by: Ian Jackson --- src/hidden.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/hidden.rs b/src/hidden.rs index 037c3580..98563547 100644 --- a/src/hidden.rs +++ b/src/hidden.rs @@ -583,6 +583,10 @@ fn recalculate_occultation_general< // prevent occulting pieces being occulted // (also prevents reflexive occultation) return None + } else if ipc.occultable().is_none() { + // if we cannot make it look identical to the others, we + // cannot occult it beause we can't hide its identity + return None } else if occ.in_region(gpc.pos) { Some(Occulted { occid, occ }) } else { -- 2.30.2