1
0
forked from mirrors/0ad

Fix sounds playing in the wrong places of the map

Introduced by a typo in f8afd49ae1.
Fixes #7345, reported by wowgetoffyourcellphone
This commit is contained in:
Lancelot de Ferrière
2025-01-01 18:58:35 +01:00
committed by wraitii
parent 3756e12701
commit fba5a23aad
+1 -1
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;
}