Fix units walk over tunnels and under bridges.
This commit is contained in:
committed by
Matthias Mailänder
parent
e95fcb6bc0
commit
b57c68e392
@@ -469,7 +469,9 @@ namespace OpenRA.Mods.Common.Activities
|
||||
else
|
||||
pos = WPos.Lerp(From, To, moveFraction, MoveFractionTotal);
|
||||
|
||||
if (self.Location.Layer == 0)
|
||||
pos -= new WVec(WDist.Zero, WDist.Zero, self.World.Map.DistanceAboveTerrain(pos));
|
||||
|
||||
mobile.SetVisualPosition(self, pos);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user