Use Map.Bounds instead.

This commit is contained in:
Paul Chote
2010-11-24 10:55:39 +13:00
parent f11bcd27cc
commit de8603832f
14 changed files with 64 additions and 65 deletions

View File

@@ -33,8 +33,8 @@ namespace OpenRA.Mods.Cnc
var owner = self.Owner;
// Start and end beyond the edge of the map, to give a finite delay, and ability to land when AFLD is on map edge
var startPos = new int2(owner.World.Map.BottomRight.X + 5, self.Location.Y);
var endPos = new int2(owner.World.Map.TopLeft.X - 5, self.Location.Y);
var startPos = new int2(owner.World.Map.Bounds.Right + 5, self.Location.Y);
var endPos = new int2(owner.World.Map.Bounds.Left - 5, self.Location.Y);
// Assume a single exit point for simplicity
var exit = self.Info.Traits.WithInterface<ExitInfo>().First();