mirror of
https://github.com/AxioDL/amuse.git
synced 2025-07-01 10:53:36 +00:00
Use std::fabs instead of std::fabsf
This commit is contained in:
parent
a23af16349
commit
54bbc7399a
@ -169,7 +169,7 @@ void Sequencer::advance(double dt)
|
||||
}
|
||||
else if (m_volFadeTime)
|
||||
{
|
||||
float step = dt / m_volFadeTime * std::fabsf(m_volFadeTarget - m_volFadeStart);
|
||||
float step = dt / m_volFadeTime * std::fabs(m_volFadeTarget - m_volFadeStart);
|
||||
float vol;
|
||||
if (m_curVol < m_volFadeTarget)
|
||||
vol = std::min(m_volFadeTarget, m_curVol + step);
|
||||
|
Loading…
x
Reference in New Issue
Block a user