Remove redundant check from SupportPowerInstance.
This commit is contained in:
@@ -203,8 +203,6 @@ namespace OpenRA.Mods.Common.Traits
|
||||
if (!Active)
|
||||
return;
|
||||
|
||||
if (Active)
|
||||
{
|
||||
var power = Instances.First();
|
||||
if (Manager.DevMode.FastCharge && remainingSubTicks > 2500)
|
||||
remainingSubTicks = 2500;
|
||||
@@ -218,14 +216,12 @@ namespace OpenRA.Mods.Common.Traits
|
||||
notifiedCharging = true;
|
||||
}
|
||||
|
||||
if (RemainingTicks == 0
|
||||
&& !notifiedReady)
|
||||
if (RemainingTicks == 0 && !notifiedReady)
|
||||
{
|
||||
power.Charged(power.Self, Key);
|
||||
notifiedReady = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public virtual void Target()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user