From aeb5312ed2d781dfc5d5211d43a4dc588f911870 Mon Sep 17 00:00:00 2001 From: "@clasher113" Date: Tue, 4 Feb 2025 13:31:40 +0200 Subject: [PATCH] bug fix --- src/audio/AL/ALAudio.cpp | 2 +- src/graphics/ui/elements/InputBindBox.cpp | 7 +++-- src/graphics/ui/elements/InputBindBox.hpp | 3 +- src/logic/PlayerController.cpp | 34 ++++++++++++----------- 4 files changed, 25 insertions(+), 21 deletions(-) diff --git a/src/audio/AL/ALAudio.cpp b/src/audio/AL/ALAudio.cpp index 6843cba0..7f28882b 100644 --- a/src/audio/AL/ALAudio.cpp +++ b/src/audio/AL/ALAudio.cpp @@ -278,7 +278,7 @@ void ALSpeaker::play() { AL_CHECK(alSourcef( source, AL_GAIN, - volume * p_channel->getVolume() * get_channel(0)->getVolume() + volume * p_channel->getVolume() )); AL_CHECK(alSourcePlay(source)); } diff --git a/src/graphics/ui/elements/InputBindBox.cpp b/src/graphics/ui/elements/InputBindBox.cpp index 2729cbb6..780b875b 100644 --- a/src/graphics/ui/elements/InputBindBox.cpp +++ b/src/graphics/ui/elements/InputBindBox.cpp @@ -13,6 +13,7 @@ InputBindBox::InputBindBox(Binding& binding, glm::vec4 padding) label(std::make_shared