Fix a pile of compiler warnings.
This commit is contained in:
@@ -54,10 +54,6 @@ namespace OpenRA.Mods.RA.Activities
|
||||
return (AllowMovement) ? Util.SequenceActivities(self.Trait<Mobile>().MoveWithinRange(Target, Range), this) : NextActivity;
|
||||
|
||||
var desiredFacing = Util.GetFacing(Target.CenterLocation - self.CenterLocation, 0);
|
||||
var renderUnit = self.TraitOrDefault<RenderUnit>();
|
||||
var numDirs = (renderUnit != null)
|
||||
? renderUnit.anim.CurrentSequence.Facings : 8;
|
||||
|
||||
if (facing.Facing != desiredFacing)
|
||||
return Util.SequenceActivities( new Turn( desiredFacing ), this );
|
||||
|
||||
|
||||
@@ -57,8 +57,6 @@ namespace OpenRA.Mods.RA
|
||||
return NextActivity;
|
||||
|
||||
var attack = self.Trait<AttackBase>();
|
||||
var range = attack.GetMaximumRange();
|
||||
|
||||
currentTarget = attack.ScanForTarget(self, null);
|
||||
if( currentTarget != null )
|
||||
inner = attack.GetAttackActivity( self, Target.FromActor(currentTarget), self.Info.Traits.Get<AutoTargetInfo>().AllowMovement );
|
||||
|
||||
@@ -103,8 +103,6 @@ namespace OpenRA.Mods.RA.Buildings
|
||||
this.topLeft = init.Get<LocationInit,int2>();
|
||||
this.Info = self.Info.Traits.Get<BuildingInfo>();
|
||||
this.PlayerPower = init.self.Owner.PlayerActor.Trait<PowerManager>();
|
||||
|
||||
var uim = init.world.WorldActor.Trait<UnitInfluence>();
|
||||
}
|
||||
|
||||
public int GetPowerUsage()
|
||||
|
||||
@@ -20,7 +20,6 @@ namespace OpenRA.Mods.RA
|
||||
|
||||
class Husk : IOccupySpace, IFacing
|
||||
{
|
||||
Actor self;
|
||||
[Sync]
|
||||
int2 location;
|
||||
|
||||
@@ -31,7 +30,6 @@ namespace OpenRA.Mods.RA
|
||||
|
||||
public Husk(ActorInitializer init)
|
||||
{
|
||||
this.self = init.self;
|
||||
this.location = init.Get<LocationInit,int2>();
|
||||
this.Facing = init.Contains<FacingInit>() ? init.Get<FacingInit,int>() : 128;
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ namespace OpenRA.Mods.RA
|
||||
{
|
||||
if (Captured && Permanent) return; // Permanent capture
|
||||
|
||||
var playersNear = CountPlayersNear(self, OriginalOwner, Range);
|
||||
//var playersNear = CountPlayersNear(self, OriginalOwner, Range);
|
||||
|
||||
if (!Captured)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user