]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - snd_main.c
fix compile errors and warnings in MSVC
[xonotic/darkplaces.git] / snd_main.c
index 09a132926145c3e7734188b16be3b3ee710253aa..23f1bca77213635bb98057989ba9f59cfb193a50 100644 (file)
@@ -1476,7 +1476,7 @@ static void SND_Spatialize_WithSfx(channel_t *ch, qboolean isstatic, sfx_t *sfx)
                f = dist * ch->distfade;
 
                f =
-                       ((snd_attenuation_exponent.value == 0) ? 1.0 : pow(1.0 - min(1.0, f), snd_attenuation_exponent.value))
+                       ((snd_attenuation_exponent.value == 0) ? 1.0 : pow(1.0 - min(1.0, f), (double)snd_attenuation_exponent.value))
                        *
                        ((snd_attenuation_decibel.value == 0) ? 1.0 : pow(0.1, 0.1 * snd_attenuation_decibel.value * f));