Merge pull request #4277 from pchote/ore-fix

Remove custom terrain when clearing resources.
This commit is contained in:
ScottNZ
2013-12-10 01:01:51 -08:00

View File

@@ -193,7 +193,10 @@ namespace OpenRA.Traits
return null;
if (--content[p.X, p.Y].Density < 0)
{
content[p.X, p.Y] = EmptyCell;
world.Map.CustomTerrain[p.X, p.Y] = null;
}
if (!dirty.Contains(p))
dirty.Add(p);
@@ -209,6 +212,7 @@ namespace OpenRA.Traits
// Clear cell
content[p.X, p.Y] = EmptyCell;
world.Map.CustomTerrain[p.X, p.Y] = null;
if (!dirty.Contains(p))
dirty.Add(p);