force-move; cleaning some dead bits; etc

This commit is contained in:
Chris Forbes
2009-12-23 21:48:15 +13:00
parent 8fa02ea6a3
commit 982fde6d0a
6 changed files with 31 additions and 24 deletions

View File

@@ -245,8 +245,9 @@ namespace OpenRa.Game
{
foreach (var crush in a.traits.WithInterface<ICrushable>())
{
if (((crush.IsCrushableByEnemy() && a.Owner != Game.LocalPlayer) || (crush.IsCrushableByFriend() && a.Owner == Game.LocalPlayer))
&& crush.CrushableBy().Contains(umt))
if (((crush.IsCrushableByEnemy() && a.Owner != Game.LocalPlayer)
|| (crush.IsCrushableByFriend() && a.Owner == Game.LocalPlayer))
&& crush.CrushableBy(umt))
{
Log.Write("{0} is crushable by MovementType {1}", a.Info.Name, umt);
return true;