Added flag to Mobile/AircraftInfo: MoveIntoShroud.

Does not change the audio feedback given.
This commit is contained in:
Taryn Hill
2014-07-21 18:00:11 -05:00
parent f84b1c145e
commit d6931f1d05
4 changed files with 58 additions and 15 deletions

13
OpenRA.Mods.RA/Air/Plane.cs Executable file → Normal file
View File

@@ -71,13 +71,18 @@ namespace OpenRA.Mods.RA.Air
{
if (order.OrderString == "Move")
{
var cell = self.World.Map.Clamp(order.TargetLocation);
var explored = self.Owner.Shroud.IsExplored(cell);
if (!explored && !Info.MoveIntoShroud)
return;
UnReserve();
var cell = self.World.Map.Clamp(order.TargetLocation);
var t = Target.FromCell(self.World, cell);
self.SetTargetLine(t, Color.Green);
var target = Target.FromCell(self.World, cell);
self.SetTargetLine(target, Color.Green);
self.CancelActivity();
self.QueueActivity(new Fly(self, t));
self.QueueActivity(new Fly(self, target));
self.QueueActivity(new FlyCircle());
}
else if (order.OrderString == "Enter")