Fix Mobile using legacy CenterPosition.Z check
This commit is contained in:
@@ -587,7 +587,7 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
public void EnteringCell(Actor self)
|
public void EnteringCell(Actor self)
|
||||||
{
|
{
|
||||||
// Only make actor crush if it is on the ground
|
// Only make actor crush if it is on the ground
|
||||||
if (self.CenterPosition.Z != 0)
|
if (!self.IsAtGroundLevel())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
var crushables = self.World.ActorMap.GetActorsAt(ToCell).Where(a => a != self)
|
var crushables = self.World.ActorMap.GetActorsAt(ToCell).Where(a => a != self)
|
||||||
|
|||||||
Reference in New Issue
Block a user