mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-07-04 05:55:47 -07:00
Fix sounds playing in the wrong places of the map
Introduced by a typo inf8afd49ae1. Fixes #7345, reported by wowgetoffyourcellphone (cherry picked from commitfba5a23aad) Signed-off-by: Itms <itms@wildfiregames.com>
This commit is contained in:
parent
8b5621e822
commit
795af45a7a
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue