From 2bfee4fd63a10afa422c896d7009d1f86327e0f7 Mon Sep 17 00:00:00 2001 From: ChthonVII Date: Wed, 19 Jun 2024 09:52:18 +0100 Subject: [PATCH] [RA] Prevent reshroud hiding allies with IsAllyReveal. See also https://github.com/ChthonVII/CnC_Remastered_Collection/commit/ae33eed78322480afe91f1948817fa191f576a72 --- redalert/map.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/redalert/map.cpp b/redalert/map.cpp index f8d14e32..471bef5e 100644 --- a/redalert/map.cpp +++ b/redalert/map.cpp @@ -2552,7 +2552,9 @@ void MapClass::Shroud_The_Map(HouseClass* house) } for (int obj_index = 0; obj_index < DisplayClass::Layer[LAYER_GROUND].Count(); obj_index++) { ObjectClass* layer_object = DisplayClass::Layer[LAYER_GROUND][obj_index]; - if (layer_object && layer_object->Is_Techno() && ((TechnoClass*)layer_object)->House == house) { + if (layer_object && layer_object->Is_Techno() + && ((((TechnoClass*)layer_object)->House == house) + || (Rule.IsAllyReveal && ((TechnoClass*)layer_object)->House->Is_Ally(house)))) { layer_object->Look(); } }