- fixed: The cycler for a pulse light needs to be reinitialized when new light properties get applied.

- do not clamp the cycler's output to a byte.
This commit is contained in:
Christoph Oelckers 2016-12-23 15:25:39 +01:00
commit 78737f9bc7
5 changed files with 32 additions and 8 deletions

View file

@ -236,7 +236,7 @@ void ADynamicLight::Activate(AActor *activator)
m_cycler.SetParams(float(m_Radius[1]), float(m_Radius[0]), pulseTime);
m_cycler.ShouldCycle(true);
m_cycler.SetCycleType(CYCLE_Sin);
m_currentRadius = (BYTE)m_cycler.GetVal();
m_currentRadius = m_cycler.GetVal();
}
}