Fixed FallToEarth groundlevel check

This commit is contained in:
teees
2015-11-30 13:01:22 +01:00
parent 70de26557b
commit c9e5dba38b

View File

@@ -33,7 +33,7 @@ namespace OpenRA.Mods.Common.Activities
public override Activity Tick(Actor self) public override Activity Tick(Actor self)
{ {
if (self.CenterPosition.Z <= 0) if (self.World.Map.DistanceAboveTerrain(self.CenterPosition).Length <= 0)
{ {
if (info.ExplosionWeapon != null) if (info.ExplosionWeapon != null)
{ {