Merge pull request #4277 from pchote/ore-fix
Remove custom terrain when clearing resources.
This commit is contained in:
@@ -193,7 +193,10 @@ namespace OpenRA.Traits
|
|||||||
return null;
|
return null;
|
||||||
|
|
||||||
if (--content[p.X, p.Y].Density < 0)
|
if (--content[p.X, p.Y].Density < 0)
|
||||||
|
{
|
||||||
content[p.X, p.Y] = EmptyCell;
|
content[p.X, p.Y] = EmptyCell;
|
||||||
|
world.Map.CustomTerrain[p.X, p.Y] = null;
|
||||||
|
}
|
||||||
|
|
||||||
if (!dirty.Contains(p))
|
if (!dirty.Contains(p))
|
||||||
dirty.Add(p);
|
dirty.Add(p);
|
||||||
@@ -209,6 +212,7 @@ namespace OpenRA.Traits
|
|||||||
|
|
||||||
// Clear cell
|
// Clear cell
|
||||||
content[p.X, p.Y] = EmptyCell;
|
content[p.X, p.Y] = EmptyCell;
|
||||||
|
world.Map.CustomTerrain[p.X, p.Y] = null;
|
||||||
|
|
||||||
if (!dirty.Contains(p))
|
if (!dirty.Contains(p))
|
||||||
dirty.Add(p);
|
dirty.Add(p);
|
||||||
|
|||||||
Reference in New Issue
Block a user