cleanup some relics of old TypeDictionary

This commit is contained in:
Chris Forbes
2010-01-15 18:06:17 +13:00
parent 4e7c604764
commit baca523c3c
5 changed files with 5 additions and 5 deletions

View File

@@ -25,7 +25,7 @@ namespace OpenRa.Game
// Does this belong here? NO, but it's your mess.
// Get the crushable actors
foreach (var a in Game.world.Actors.Where(b => b.traits.WithInterface<ICrushable>().Any()))
foreach (var a in Game.world.Actors.Where(b => b.traits.Contains<ICrushable>()))
{
// Are there any units in the same cell that can crush this?
foreach( var ios in a.traits.WithInterface<IOccupySpace>() )