mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Working lerp stop.
This commit is contained in:
parent
18ec4d476c
commit
f66acdfee2
|
@ -124,7 +124,6 @@ public:
|
|||
if(channels[c].lerp >= 0)
|
||||
{
|
||||
dv = (channels[c].new_vol - channels[c].old_vol) * NUM_FRAMES_LERP_INV;
|
||||
dbg_msg("mixer", "lerp %f", dv);
|
||||
}
|
||||
|
||||
if(channels[c].data->channels == 1)
|
||||
|
@ -141,7 +140,7 @@ public:
|
|||
|
||||
channels[c].lerp -= to_fill;
|
||||
if(channels[c].lerp < 0)
|
||||
channels[c].lerp = 0;
|
||||
channels[c].lerp = -1;
|
||||
|
||||
filled += to_fill;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue