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 fba5a23aad)
Signed-off-by: Itms <itms@wildfiregames.com>
This commit is contained in:
Lancelot de Ferrière 2025-01-01 18:58:35 +01:00 committed by Itms
parent 8b5621e822
commit 795af45a7a
No known key found for this signature in database
GPG key ID: C7E52BD14CE14E09

View file

@ -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;
}