Make nod airfield fly the width of the map instead of spawning a fixed distance outside the map. Increase aircraft speed to compensate. Fixes #283.

This commit is contained in:
Paul Chote
2011-07-27 03:54:37 +12:00
parent d9174b7e3b
commit 8a6a3eac85
2 changed files with 4 additions and 3 deletions

View File

@@ -32,8 +32,9 @@ 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.Bounds.Right + 5, self.Location.Y);
// Start a fixed distance away: the width of the map.
// This makes the production timing indepent of spawnpoint
var startPos = self.Location + new int2(owner.World.Map.Bounds.Width, 0);
var endPos = new int2(owner.World.Map.Bounds.Left - 5, self.Location.Y);
// Assume a single exit point for simplicity