DestroyOre ported

This commit is contained in:
Chris Forbes
2010-03-03 21:00:23 +13:00
parent f133410977
commit 5d7772ac9a
2 changed files with 4 additions and 12 deletions

View File

@@ -48,7 +48,8 @@ namespace OpenRA
if (impactSound != null) Sound.Play(impactSound + ".aud");
if (!isWater) world.Map.AddSmudge(targetTile, warhead);
if (warhead.Ore) world.Map.DestroyOre(targetTile.X, targetTile.Y);
if (warhead.Ore)
world.WorldActor.traits.Get<ResourceLayer>().Destroy(targetTile);
var firepowerModifier = firedBy.traits
.WithInterface<IFirepowerModifier>()