Prevent AttackPopupTurreted.TickIdle from running while disabled.
This commit is contained in:
@@ -106,7 +106,7 @@ namespace OpenRA.Mods.Cnc.Traits
|
||||
|
||||
void INotifyIdle.TickIdle(Actor self)
|
||||
{
|
||||
if (IsTraitPaused)
|
||||
if (IsTraitDisabled || IsTraitPaused)
|
||||
return;
|
||||
|
||||
if (state == PopupState.Open && idleTicks++ > info.CloseDelay)
|
||||
|
||||
Reference in New Issue
Block a user