Skip to content

Commit

Permalink
[RA] Prevent reshroud hiding allies with IsAllyReveal.
Browse files Browse the repository at this point in the history
  • Loading branch information
ChthonVII authored and OmniBlade committed Jun 20, 2024
1 parent 53e5674 commit 2bfee4f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion redalert/map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
Expand Down

0 comments on commit 2bfee4f

Please sign in to comment.