fixing references to Ore.*

This commit is contained in:
Bob
2010-01-18 03:35:44 +13:00
parent efda804a41
commit 7c1cd29e87
4 changed files with 14 additions and 12 deletions

View File

@@ -22,7 +22,7 @@ namespace OpenRa.Traits
for (var j = -1; j < 2; j++)
for (var i = -1; i < 2; i++)
if (Game.SharedRandom.NextDouble() < info.Chance)
if (Ore.CanSpreadInto(self.Location.X + i, self.Location.Y + j))
if (Game.world.OreCanSpreadInto(self.Location.X + i, self.Location.Y + j))
Game.world.Map.AddOre(self.Location.X + i, self.Location.Y + j);
ticks = info.Interval;