added a comment

This commit is contained in:
Volker Fischer 2020-07-01 15:22:51 +02:00
parent 695f205848
commit 3b20453f0e

View file

@ -425,7 +425,9 @@ void CChannelFader::SendFaderLevelToServer ( const double dLevel,
bSuppressServerUpdate,
dLevel / dPreviousFaderLevel );
// update previous fader level since the level has changed
// update previous fader level since the level has changed, avoid to use
// the zero value not to have division by zero and also to retain the ratio
// after the fader is moved up again from the zero position
if ( dLevel > 0 )
{
dPreviousFaderLevel = dLevel;