Change the parameters of ICrushable.CrushableBy

This commit is contained in:
abcdefg30
2016-01-23 15:39:03 +01:00
parent 9ea2a7a0bd
commit fe5754e2bd
5 changed files with 6 additions and 6 deletions

View File

@@ -198,7 +198,7 @@ namespace OpenRA.Mods.Common.Traits
return GetAvailableSubCell(a, SubCell.Any, ignoreActor, checkTransientActors) != SubCell.Invalid;
}
bool ICrushable.CrushableBy(HashSet<string> crushClasses, Player owner)
bool ICrushable.CrushableBy(Actor self, Actor crusher, HashSet<string> crushClasses)
{
// Crate can only be crushed if it is not in the air.
return self.IsAtGroundLevel() && crushClasses.Contains(info.CrushClass);