mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2025-12-13 10:08:31 +00:00
Fixed time-update for disabled effects
This commit is contained in:
parent
77e3691eec
commit
519bdbfe74
@ -48,11 +48,15 @@ namespace RGB.NET.Core
|
|||||||
{
|
{
|
||||||
for (int i = EffectTimes.Count - 1; i >= 0; i--)
|
for (int i = EffectTimes.Count - 1; i >= 0; i--)
|
||||||
{
|
{
|
||||||
EffectTimeContainer effectTime = EffectTimes[i];
|
|
||||||
if (!effectTime.Effect.IsEnabled) continue;
|
|
||||||
|
|
||||||
long currentTicks = DateTime.Now.Ticks;
|
long currentTicks = DateTime.Now.Ticks;
|
||||||
|
|
||||||
|
EffectTimeContainer effectTime = EffectTimes[i];
|
||||||
|
if (!effectTime.Effect.IsEnabled)
|
||||||
|
{
|
||||||
|
effectTime.TicksAtLastUpdate = currentTicks;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
double deltaTime;
|
double deltaTime;
|
||||||
if (effectTime.TicksAtLastUpdate < 0)
|
if (effectTime.TicksAtLastUpdate < 0)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user