From 61c3c252ea7018ec5ebf1efc5959244f8c8c2f12 Mon Sep 17 00:00:00 2001 From: abcdefg30 Date: Mon, 30 Oct 2023 16:28:30 +0100 Subject: [PATCH] Remove an unnecessary variable assignment The info is already set with the same name in the constructor --- OpenRA.Mods.Common/Traits/SupportPowers/ParatroopersPower.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/OpenRA.Mods.Common/Traits/SupportPowers/ParatroopersPower.cs b/OpenRA.Mods.Common/Traits/SupportPowers/ParatroopersPower.cs index 80e5d5960c..e50d6f07a0 100644 --- a/OpenRA.Mods.Common/Traits/SupportPowers/ParatroopersPower.cs +++ b/OpenRA.Mods.Common/Traits/SupportPowers/ParatroopersPower.cs @@ -100,8 +100,6 @@ namespace OpenRA.Mods.Common.Traits var aircraft = new List(); var units = new List(); - var info = Info as ParatroopersPowerInfo; - if (!facing.HasValue) facing = new WAngle(1024 * self.World.SharedRandom.Next(info.QuantizedFacings) / info.QuantizedFacings);