Convert IFacing.Facing and TurnSpeed to WAngle.
This commit is contained in:
@@ -209,13 +209,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
IOverrideAircraftLanding overrideAircraftLanding;
|
||||
|
||||
[Sync]
|
||||
public WAngle Facing;
|
||||
|
||||
int IFacing.Facing
|
||||
{
|
||||
get { return Facing.Facing; }
|
||||
set { Facing = WAngle.FromFacing(value); }
|
||||
}
|
||||
public WAngle Facing { get; set; }
|
||||
|
||||
[Sync]
|
||||
public WPos CenterPosition { get; private set; }
|
||||
|
||||
@@ -63,7 +63,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
if (!base.CanAttack(self, target))
|
||||
return false;
|
||||
|
||||
return TargetInFiringArc(self, target, base.Info.FacingTolerance);
|
||||
return TargetInFiringArc(self, target, 4 * base.Info.FacingTolerance);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
|
||||
inAttackRange = false;
|
||||
|
||||
facingTarget = TargetInFiringArc(self, target, info.FacingTolerance);
|
||||
facingTarget = TargetInFiringArc(self, target, 4 * info.FacingTolerance);
|
||||
|
||||
foreach (var a in Armaments)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user