[Change] Tweaked the positional sound a bit.

This commit is contained in:
Allanis 2013-12-25 23:18:31 +00:00
parent 7534fe3c9d
commit 9dbf65947a

View File

@ -284,9 +284,9 @@ int sound_playPos(int sound, double x, double y) {
}
/* Need to make sure distance doesn't overflow. */
idist = dist / 4;
idist = (int)dist / 13.;
if(idist > 255) idist = 255;
if(Mix_SetPosition(v->channel, (int)angle, idist) < 0) {
if(Mix_SetPosition(v->channel, (Sint16)angle, (Uint8)idist) < 0) {
WARN("Unable to set sound position: %s", Mix_GetError());
return -1;
}