summaryrefslogtreecommitdiffstats
path: root/game/client/entity/sound_emitter.cc
diff options
context:
space:
mode:
authoruntodesu <kirill@untode.su>2025-09-14 19:16:44 +0500
committeruntodesu <kirill@untode.su>2025-09-14 19:16:44 +0500
commit8bcbd2729388edc63c82d77d314b583af1447c49 (patch)
tree460c2b509372077f6adf95d72c4245988a580aed /game/client/entity/sound_emitter.cc
parent7fc7fdb001bea8674fe0dbc1b962f3ec2702debb (diff)
downloadvoxelius-8bcbd2729388edc63c82d77d314b583af1447c49.tar.bz2
voxelius-8bcbd2729388edc63c82d77d314b583af1447c49.zip
Cleanup math with qfengine ports again
Diffstat (limited to 'game/client/entity/sound_emitter.cc')
-rw-r--r--game/client/entity/sound_emitter.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/game/client/entity/sound_emitter.cc b/game/client/entity/sound_emitter.cc
index c2a93a1..84a66c0 100644
--- a/game/client/entity/sound_emitter.cc
+++ b/game/client/entity/sound_emitter.cc
@@ -37,7 +37,7 @@ void entity::SoundEmitter::update(void)
const auto view = globals::dimension->entities.view<entity::SoundEmitter>();
const auto& pivot = entity::camera::position_chunk;
- const auto gain = math::clamp(sound::volume_effects.get_value() * 0.01f, 0.0f, 1.0f);
+ const auto gain = glm::clamp(sound::volume_effects.get_value() * 0.01f, 0.0f, 1.0f);
for(const auto [entity, emitter] : view.each()) {
alSourcef(emitter.source, AL_GAIN, gain);