ref: f0b7b5b83f9f40d421289f593f47b82e54709d0d
parent: 1bbff030380ff35f37bece2d300394da71b3a20d
author: Simon Howard <[email protected]>
date: Wed Sep 24 16:01:11 EDT 2008
Fix angle calculation in sound code. Subversion-branch: /branches/raven-branch Subversion-revision: 1277
--- a/src/heretic/s_sound.c
+++ b/src/heretic/s_sound.c
@@ -241,7 +241,7 @@
{
angle = R_PointToAngle2(players[consoleplayer].mo->x,
players[consoleplayer].mo->y,
- channel[i].mo->x, channel[i].mo->y);
+ origin->x, origin->y);
angle = (angle - viewangle) >> 24;
sep = angle * 2 - 128;
if (sep < 64)