Code style.

This commit is contained in:
Matthias Mailänder
2021-12-05 13:44:09 +01:00
committed by abcdefg30
parent b147da388a
commit 2c5f1f343f
2 changed files with 2 additions and 2 deletions

View File

@@ -57,7 +57,7 @@ namespace OpenRA.Mods.Common.Traits
if (info.ValidFactions.Any() && !info.ValidFactions.Contains(collector.Owner.Faction.InternalName))
return false;
foreach (string unit in info.Units)
foreach (var unit in info.Units)
{
// avoid dumping tanks in the sea, and ships on dry land.
if (!GetSuitableCells(collector.Location, unit).Any())

View File

@@ -108,7 +108,7 @@ namespace OpenRA.Mods.Common.Traits
var altitude = unitType.TraitInfo<AircraftInfo>().CruiseAltitude.Length;
var dropRotation = WRot.FromYaw(facing.Value);
var delta = new WVec(0, -1024, 0).Rotate(dropRotation);
target = target + new WVec(0, 0, altitude);
target += new WVec(0, 0, altitude);
var startEdge = target - (self.World.Map.DistanceToEdge(target, -delta) + info.Cordon).Length * delta / 1024;
var finishEdge = target + (self.World.Map.DistanceToEdge(target, delta) + info.Cordon).Length * delta / 1024;