Remove custom terrain when clearing resources. Fixes #4272.

This commit is contained in:
Paul Chote
2013-12-10 16:52:41 +13:00
parent 18ccb50054
commit fa067fa905

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);