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:
committed by
wraitii
parent
3756e12701
commit
fba5a23aad
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user