Adjust the patrol starting position

This commit is contained in:
ScottNZ
2012-07-01 12:14:12 +12:00
parent e02397da3e
commit 18d75feb15

View File

@@ -1,10 +1,10 @@
#region Copyright & License Information #region Copyright & License Information
/* /*
* Copyright 2007-2011 The OpenRA Developers (see AUTHORS) * Copyright 2007-2011 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made * This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License * available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation. For more information, * as published by the Free Software Foundation. For more information,
* see COPYING. * see COPYING.
*/ */
#endregion #endregion
@@ -23,10 +23,10 @@ namespace OpenRA.Mods.RA.Missions
class Allies01Script : IWorldLoaded, ITick class Allies01Script : IWorldLoaded, ITick
{ {
static readonly string[] objectives = static readonly string[] objectives =
{ {
"Find Einstein.", "Find Einstein.",
"Wait for the helicopter and extract Einstein." "Wait for the helicopter and extract Einstein."
}; };
int currentObjective; int currentObjective;
@@ -187,7 +187,7 @@ namespace OpenRA.Mods.RA.Missions
{ {
for (int i = 0; i < patrol.Length; i++) for (int i = 0; i < patrol.Length; i++)
{ {
var actor = self.World.CreateActor(patrol[i], new TypeDictionary { new OwnerInit(soviets), new LocationInit(insertionLZ.Location + new CVec(-1 + i, 6 + i * 2)) }); var actor = self.World.CreateActor(patrol[i], new TypeDictionary { new OwnerInit(soviets), new LocationInit(insertionLZ.Location + new CVec(-1 + i, 8 + i * 2)) });
actor.QueueActivity(new Move.Move(insertionLZ.Location)); actor.QueueActivity(new Move.Move(insertionLZ.Location));
} }
} }