remove spurious IProducer interface; add IBlocksBullets and move Wall

This commit is contained in:
Chris Forbes
2010-05-23 16:24:28 +12:00
parent 224489502e
commit 431bbe2764
8 changed files with 9 additions and 12 deletions

View File

@@ -101,7 +101,7 @@ namespace OpenRA.Effects
var cell = ((1f/Game.CellSize) * pos).ToInt2();
if (world.WorldActor.traits.Get<UnitInfluence>().GetUnitsAt(cell).Any(
a => a.traits.Contains<Wall>()))
a => a.traits.Contains<IBlocksBullets>()))
{
Args.dest = pos.ToInt2();
Explode(world);

View File

@@ -116,7 +116,7 @@ namespace OpenRA.Effects
var cell = ((1f / Game.CellSize) * Pos).ToInt2();
if (world.WorldActor.traits.Get<UnitInfluence>().GetUnitsAt(cell).Any(
a => a.traits.Contains<Wall>()))
a => a.traits.Contains<IBlocksBullets>()))
Explode(world);
}
}