Kill Map.XOffset / Map.YOffset.

This commit is contained in:
Paul Chote
2010-11-24 10:26:38 +13:00
parent 00dc91cf49
commit f11bcd27cc
8 changed files with 31 additions and 33 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.XOffset + owner.World.Map.Width+5, self.Location.Y);
var endPos = new int2(owner.World.Map.XOffset-5, self.Location.Y);
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);
// Assume a single exit point for simplicity
var exit = self.Info.Traits.WithInterface<ExitInfo>().First();