Fix low power notification never triggering
This commit is contained in:
committed by
Matthias Mailänder
parent
a691f2ebac
commit
bb96e22e64
@@ -68,6 +68,7 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
|
|
||||||
devMode = self.Trait<DeveloperMode>();
|
devMode = self.Trait<DeveloperMode>();
|
||||||
wasHackEnabled = devMode.UnlimitedPower;
|
wasHackEnabled = devMode.UnlimitedPower;
|
||||||
|
PlayLowPowerNotification = info.AdviceInterval > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void INotifyCreated.Created(Actor self)
|
void INotifyCreated.Created(Actor self)
|
||||||
|
|||||||
Reference in New Issue
Block a user