de-legacied Minelayer

This commit is contained in:
Bob
2010-01-12 19:53:20 +13:00
parent 0c473aa941
commit 5247039345
5 changed files with 18 additions and 4 deletions

View File

@@ -36,7 +36,7 @@ namespace OpenRa.Game
var crusher = GetUnitsAt(cell).Where(b => a != b && Game.IsActorCrushableByActor(a, b)).FirstOrDefault();
if (crusher != null)
{
Log.Write("{0} crushes {1}", crusher.LegacyInfo.Name, a.LegacyInfo.Name);
Log.Write("{0} crushes {1}", crusher.Info.Name, a.Info.Name);
// Apply the crush action
foreach (var crush in a.traits.WithInterface<ICrushable>())
crush.OnCrush(crusher);