From 75d066d6afafab0f65ebe9bec9274cff63aed528 Mon Sep 17 00:00:00 2001 From: reaperrr Date: Fri, 29 Jan 2016 22:26:52 +0100 Subject: [PATCH] Fix Mobile using legacy CenterPosition.Z check --- OpenRA.Mods.Common/Traits/Mobile.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Traits/Mobile.cs b/OpenRA.Mods.Common/Traits/Mobile.cs index db005ee978..ee58b79697 100644 --- a/OpenRA.Mods.Common/Traits/Mobile.cs +++ b/OpenRA.Mods.Common/Traits/Mobile.cs @@ -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)