foxygit / doom Log in
commit f0b7b5b83f9f40d421289f593f47b82e54709d0d
Author:     Simon Howard <fraggle@gmail.com>
AuthorDate: Wed Sep 24 20:01:11 2008 +0000
Commit:     Simon Howard <fraggle@gmail.com>
CommitDate: Wed Sep 24 20:01:11 2008 +0000

    Fix angle calculation in sound code.

    Subversion-branch: /branches/raven-branch
    Subversion-revision: 1277
---
 src/heretic/s_sound.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/heretic/s_sound.c b/src/heretic/s_sound.c
index ae40269b..a67a56c8 100644
--- a/src/heretic/s_sound.c
+++ b/src/heretic/s_sound.c
@@ -241,7 +241,7 @@ void S_StartSound(mobj_t * origin, int sound_id)
     {
         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)