Add crushing logic to aircraft.

This commit is contained in:
tovl
2019-03-17 19:52:14 +01:00
committed by reaperrr
parent c633e07410
commit 560f8c26bc
9 changed files with 111 additions and 9 deletions

View File

@@ -213,7 +213,7 @@ namespace OpenRA.Mods.Common.Traits
return false;
}
return !IsEmpty(self) && (aircraft == null || aircraft.CanLand(self.Location, self))
return !IsEmpty(self) && (aircraft == null || aircraft.CanLand(self.Location))
&& CurrentAdjacentCells != null && CurrentAdjacentCells.Any(c => Passengers.Any(p => p.Trait<IPositionable>().CanEnterCell(c, null, immediate)));
}