diff --git a/src/common/SoundSDL2.cxx b/src/common/SoundSDL2.cxx index dbdee9ebb..4e9227d26 100644 --- a/src/common/SoundSDL2.cxx +++ b/src/common/SoundSDL2.cxx @@ -183,7 +183,7 @@ void SoundSDL2::setVolume(uInt32 percent) myVolume = percent; SDL_LockAudio(); - myVolumeFactor = std::pow(static_cast(percent) / 100.f, 2.f); + myVolumeFactor = static_cast(percent) / 100.f; SDL_UnlockAudio(); } }