]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - snd_main.c
don't hexdump png images while reading them (why did it do this??)
[xonotic/darkplaces.git] / snd_main.c
index c523807a56b897867814aa889bdcf7b2d655263e..ae11f0ca69e2a041ff66de6b67de3db929b50e01 100644 (file)
@@ -852,13 +852,13 @@ void S_UpdateAmbientSounds (void)
                // FIXME: this rounds off to an int each frame, meaning there is little to no fade at extremely high framerates!
                if (chan->master_vol < vol)
                {
-                       chan->master_vol += (int)(host_realframetime * ambient_fade.value);
+                       chan->master_vol += (int)(cl.realframetime * ambient_fade.value);
                        if (chan->master_vol > vol)
                                chan->master_vol = vol;
                }
                else if (chan->master_vol > vol)
                {
-                       chan->master_vol -= (int)(host_realframetime * ambient_fade.value);
+                       chan->master_vol -= (int)(cl.realframetime * ambient_fade.value);
                        if (chan->master_vol < vol)
                                chan->master_vol = vol;
                }