Take ownership into account when determining crushability. Fixes the important half of #951 (tanks crushing your own walls).

This commit is contained in:
Paul Chote
2011-07-10 17:16:22 +12:00
parent 64b88819a9
commit 98ae8c7630
5 changed files with 26 additions and 11 deletions

View File

@@ -142,7 +142,7 @@ namespace OpenRA.Traits
public interface ICrushable
{
void OnCrush(Actor crusher);
IEnumerable<string> CrushClasses { get; }
bool CrushableBy(string[] crushClasses, Player owner);
}
public struct Renderable