From 9dbf65947ad12338efe51d51daa5279c00a14ff0 Mon Sep 17 00:00:00 2001
From: Allanis <allanis@saracraft.net>
Date: Wed, 25 Dec 2013 23:18:31 +0000
Subject: [PATCH] [Change] Tweaked the positional sound a bit.

---
 src/sound.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/sound.c b/src/sound.c
index 5721bf6..ee6d59e 100644
--- a/src/sound.c
+++ b/src/sound.c
@@ -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;
   }