From 82ac8d8d809d232d9f8f68702cb47de79f846306 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sat, 5 Apr 2014 17:05:42 +1300 Subject: [PATCH] Support multiple wall-type connections for D2K. --- OpenRA.Mods.RA/Render/RenderBuildingWall.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OpenRA.Mods.RA/Render/RenderBuildingWall.cs b/OpenRA.Mods.RA/Render/RenderBuildingWall.cs index 7a25fe890e..a967180a99 100644 --- a/OpenRA.Mods.RA/Render/RenderBuildingWall.cs +++ b/OpenRA.Mods.RA/Render/RenderBuildingWall.cs @@ -15,6 +15,7 @@ namespace OpenRA.Mods.RA.Render { class RenderBuildingWallInfo : RenderBuildingInfo { + public readonly string Type = "wall"; public readonly string Sequence = "idle"; public override object Create(ActorInitializer init) { return new RenderBuildingWall(init, this); } @@ -57,7 +58,7 @@ namespace OpenRA.Mods.RA.Render foreach (var a in adjacentActors) { var rb = a.TraitOrDefault(); - if (rb == null) + if (rb == null || rb.info.Type != info.Type) continue; var location = self.Location;