Remove or use unused variables in TransformsIntoAircraft
This commit is contained in:
@@ -111,8 +111,6 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
var cell = self.World.Map.Clamp(self.World.Map.CellContaining(order.Target.CenterPosition));
|
var cell = self.World.Map.Clamp(self.World.Map.CellContaining(order.Target.CenterPosition));
|
||||||
if (!Info.MoveIntoShroud && !self.Owner.Shroud.IsExplored(cell))
|
if (!Info.MoveIntoShroud && !self.Owner.Shroud.IsExplored(cell))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
var target = Target.FromCell(self.World, cell);
|
|
||||||
}
|
}
|
||||||
else if (order.OrderString == "Enter")
|
else if (order.OrderString == "Enter")
|
||||||
{
|
{
|
||||||
@@ -121,7 +119,8 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
if (order.Target.Type != TargetType.Actor)
|
if (order.Target.Type != TargetType.Actor)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
var targetActor = order.Target.Actor;
|
if (!AircraftCanEnter(order.Target.Actor))
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user