From c9ed97524f477aa2b15caf4b84cf82707dc80ac4 Mon Sep 17 00:00:00 2001 From: Codes4Fun Date: Tue, 9 Feb 2016 14:38:16 -0800 Subject: [PATCH] Fix for 7539. When the bridge damage state changes, the domain cells of the bridge would pull in the first neighbors domain which may be untraversable. This change only pulls the domain of traversable neighbor tiles. --- OpenRA.Mods.Common/Traits/World/DomainIndex.cs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/OpenRA.Mods.Common/Traits/World/DomainIndex.cs b/OpenRA.Mods.Common/Traits/World/DomainIndex.cs index f7ec45354a..4456dcd8c1 100644 --- a/OpenRA.Mods.Common/Traits/World/DomainIndex.cs +++ b/OpenRA.Mods.Common/Traits/World/DomainIndex.cs @@ -98,13 +98,15 @@ namespace OpenRA.Mods.Common.Traits { var neighborDomain = domains[n]; if (CanTraverseTile(world, n)) + { neighborDomains.Add(neighborDomain); - // Set ourselves to the first non-dirty neighbor we find. - if (!found) - { - domains[cell] = neighborDomain; - found = true; + // Set ourselves to the first non-dirty neighbor we find. + if (!found) + { + domains[cell] = neighborDomain; + found = true; + } } } }