diff --git a/OpenRA.Mods.RA/Effects/Contrail.cs b/OpenRA.Mods.RA/Effects/Contrail.cs index c6f1bc9a7c..83741fa520 100755 --- a/OpenRA.Mods.RA/Effects/Contrail.cs +++ b/OpenRA.Mods.RA/Effects/Contrail.cs @@ -29,18 +29,16 @@ namespace OpenRA.Mods.RA class Contrail : ITick, IPostRender { - ContrailInfo Info = null; - Turret ContrailTurret = null; + Turret contrailTurret = null; ContrailHistory history; IFacing facing; IMove move; public Contrail(Actor self, ContrailInfo info) { - Info = info; - ContrailTurret = new Turret(Info.ContrailOffset); - history = new ContrailHistory(Info.TrailLength, - Info.UsePlayerColor ? ContrailHistory.ChooseColor(self) : Info.Color); + contrailTurret = new Turret(info.ContrailOffset); + history = new ContrailHistory(info.TrailLength, + info.UsePlayerColor ? ContrailHistory.ChooseColor(self) : info.Color); facing = self.Trait(); move = self.Trait(); } @@ -48,7 +46,7 @@ namespace OpenRA.Mods.RA public void Tick(Actor self) { history.Tick(self.CenterLocation - new int2(0, move.Altitude) - - Combat.GetTurretPosition(self, facing, ContrailTurret)); + - Combat.GetTurretPosition(self, facing, contrailTurret)); } public void RenderAfterWorld(WorldRenderer wr, Actor self) { history.Render(self); }