added a comment
This commit is contained in:
parent
695f205848
commit
3b20453f0e
1 changed files with 3 additions and 1 deletions
|
@ -425,7 +425,9 @@ void CChannelFader::SendFaderLevelToServer ( const double dLevel,
|
||||||
bSuppressServerUpdate,
|
bSuppressServerUpdate,
|
||||||
dLevel / dPreviousFaderLevel );
|
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 )
|
if ( dLevel > 0 )
|
||||||
{
|
{
|
||||||
dPreviousFaderLevel = dLevel;
|
dPreviousFaderLevel = dLevel;
|
||||||
|
|
Loading…
Reference in a new issue