Merge pull request #10728 from Codes4Fun/bleed
Fixed domain index updates for bridges
This commit is contained in:
@@ -98,13 +98,15 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
{
|
{
|
||||||
var neighborDomain = domains[n];
|
var neighborDomain = domains[n];
|
||||||
if (CanTraverseTile(world, n))
|
if (CanTraverseTile(world, n))
|
||||||
|
{
|
||||||
neighborDomains.Add(neighborDomain);
|
neighborDomains.Add(neighborDomain);
|
||||||
|
|
||||||
// Set ourselves to the first non-dirty neighbor we find.
|
// Set ourselves to the first non-dirty neighbor we find.
|
||||||
if (!found)
|
if (!found)
|
||||||
{
|
{
|
||||||
domains[cell] = neighborDomain;
|
domains[cell] = neighborDomain;
|
||||||
found = true;
|
found = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user