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.
This commit is contained in:
Codes4Fun
2016-02-09 14:38:16 -08:00
parent 6093398de3
commit c9ed97524f

View File

@@ -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;
}
}
}
}