Remove unnecessary this. references.
This commit is contained in:
@@ -30,7 +30,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
public AttackFrontal(Actor self, AttackFrontalInfo info)
|
||||
: base(self, info)
|
||||
{
|
||||
this.Info = info;
|
||||
Info = info;
|
||||
}
|
||||
|
||||
protected override bool CanAttack(Actor self, Target target)
|
||||
|
||||
@@ -39,7 +39,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
|
||||
public GrantExternalConditionToCrusher(Actor self, GrantExternalConditionToCrusherInfo info)
|
||||
{
|
||||
this.Info = info;
|
||||
Info = info;
|
||||
}
|
||||
|
||||
void INotifyCrushed.OnCrush(Actor self, Actor crusher, BitSet<CrushClass> crushClasses)
|
||||
|
||||
@@ -57,7 +57,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
public ModularBot(ModularBotInfo info, ActorInitializer init)
|
||||
{
|
||||
this.info = info;
|
||||
this.world = init.World;
|
||||
world = init.World;
|
||||
}
|
||||
|
||||
// Called by the host's player creation code
|
||||
|
||||
@@ -50,8 +50,8 @@ namespace OpenRA.Mods.Common.Traits.Render
|
||||
centerPosition,
|
||||
range.Value,
|
||||
0,
|
||||
this.Color,
|
||||
this.BorderColor);
|
||||
Color,
|
||||
BorderColor);
|
||||
|
||||
var otherRanges = w.ActorsWithTrait<RenderRangeCircle>()
|
||||
.Where(a => a.Trait.Info.RangeCircleType == RangeCircleType)
|
||||
|
||||
@@ -34,7 +34,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
|
||||
void INotifyCreated.Created(Actor self)
|
||||
{
|
||||
this.worldNotifySelection = self.TraitsImplementing<INotifySelection>().ToArray();
|
||||
worldNotifySelection = self.TraitsImplementing<INotifySelection>().ToArray();
|
||||
}
|
||||
|
||||
void UpdateHash()
|
||||
|
||||
Reference in New Issue
Block a user