From f0b7b5b83f9f40d421289f593f47b82e54709d0d Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Wed, 24 Sep 2008 20:01:11 +0000 Subject: 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(-) (limited to 'src/heretic') 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) -- cgit v1.2.3