From 795af45a7a5e0950184a4c7a45e1946434bef928 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lancelot=20de=20Ferri=C3=A8re?= Date: Wed, 1 Jan 2025 18:58:35 +0100 Subject: [PATCH] Fix sounds playing in the wrong places of the map Introduced by a typo in f8afd49ae1. Fixes #7345, reported by wowgetoffyourcellphone (cherry picked from commit fba5a23aadfb3c8699276a0de3e55151c2a0048c) Signed-off-by: Itms --- source/soundmanager/scripting/SoundGroup.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/soundmanager/scripting/SoundGroup.cpp b/source/soundmanager/scripting/SoundGroup.cpp index ecb8995828..ae2d6b8aff 100644 --- a/source/soundmanager/scripting/SoundGroup.cpp +++ b/source/soundmanager/scripting/SoundGroup.cpp @@ -169,7 +169,7 @@ float CSoundGroup::RadiansOffCenter(const CVector3D& position, bool& onScreen, f answer = radianCap * (screenPos.X * 2 / screenWidth - 1); } - if (screenPos.X < -yBufferSize) + if (screenPos.Y < -yBufferSize) { onScreen = false; }