Fix Mobile using legacy CenterPosition.Z check

This commit is contained in:
reaperrr
2016-01-29 22:26:52 +01:00
parent ce8b03a276
commit 75d066d6af

View File

@@ -587,7 +587,7 @@ namespace OpenRA.Mods.Common.Traits
public void EnteringCell(Actor self)
{
// Only make actor crush if it is on the ground
if (self.CenterPosition.Z != 0)
if (!self.IsAtGroundLevel())
return;
var crushables = self.World.ActorMap.GetActorsAt(ToCell).Where(a => a != self)