diff --git a/polymer/eduke32/source/sounds.c b/polymer/eduke32/source/sounds.c index f9b5963c7..7cf4f8c85 100644 --- a/polymer/eduke32/source/sounds.c +++ b/polymer/eduke32/source/sounds.c @@ -508,7 +508,7 @@ static int32_t S_CalcDistAndAng(int32_t i, int32_t num, int32_t camsect, int32_t sndang = S_GetAngle(camang, cam, pos); - sndist = FindDistance3D(cam->x-pos->x, cam->y-pos->y, (cam->z-pos->z)>>4); + sndist = FindDistance3D(cam->x-pos->x, cam->y-pos->y, (cam->z-pos->z)); #ifdef SPLITSCREEN_MOD_HACKS if (g_fakeMultiMode==2) @@ -524,7 +524,7 @@ static int32_t S_CalcDistAndAng(int32_t i, int32_t num, int32_t camsect, int32_t { const vec3_t *cam2 = &g_player[1].ps->pos; - int32_t sndist2 = FindDistance3D(cam2->x-pos->x, cam2->y-pos->y, (cam2->z-pos->z)>>4); + int32_t sndist2 = FindDistance3D(cam2->x-pos->x, cam2->y-pos->y, (cam2->z-pos->z)); if (sndist2 < sndist) { diff --git a/polymer/eduke32/source/sounds_mapster32.c b/polymer/eduke32/source/sounds_mapster32.c index 0ea9675db..eb7354c1f 100644 --- a/polymer/eduke32/source/sounds_mapster32.c +++ b/polymer/eduke32/source/sounds_mapster32.c @@ -190,7 +190,7 @@ int32_t S_PlaySound3D(int32_t num, int32_t i, const vec3_t *pos) cs = cursectnum; ca = ang; - sndist = FindDistance3D((cx-pos->x),(cy-pos->y),(cz-pos->z)>>4); + sndist = FindDistance3D((cx-pos->x),(cy-pos->y),(cz-pos->z)); if (i >= 0 && (g_sounds[num].m & SF_GLOBAL) == 0 && PN == MUSICANDSFX && SLT < 999 && (sector[SECT].lotag&0xff) < 9) sndist = divscale14(sndist,(SHT+1)); @@ -403,7 +403,7 @@ void S_Update(void) sndang = 2048 + ca - getangle(cx-sx,cy-sy); sndang &= 2047; - sndist = FindDistance3D((cx-sx),(cy-sy),(cz-sz)>>4); + sndist = FindDistance3D((cx-sx),(cy-sy),(cz-sz)); if (i >= 0 && (g_sounds[j].m & SF_GLOBAL) == 0 && PN == MUSICANDSFX && SLT < 999 && (sector[SECT].lotag&0xff) < 9) sndist = divscale14(sndist,(SHT+1));