16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-20 22:59:18 +02:00

maintenance: minor code tweaks

This commit is contained in:
tmj-fstate
2019-08-20 12:40:55 +02:00
parent 4dddf2dc45
commit 07d43956af
6 changed files with 11 additions and 7 deletions

View File

@@ -169,7 +169,7 @@ openal_source::sync_with( sound_properties const &State ) {
|| ( false == is_in_range ) ) {
// if the emitter is outside of its nominal hearing range or was outside of it during last check
// adjust the volume to a suitable fraction of nominal value
auto const fadedistance { sound_range * 0.75 };
auto const fadedistance { sound_range * 0.75f };
auto const rangefactor {
interpolate(
1.f, 0.f,