- 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:
parent
a825d1d92f
commit
78737f9bc7
5 changed files with 32 additions and 8 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue