diff options
author | Simon Howard | 2008-09-24 20:01:11 +0000 |
---|---|---|
committer | Simon Howard | 2008-09-24 20:01:11 +0000 |
commit | f0b7b5b83f9f40d421289f593f47b82e54709d0d (patch) | |
tree | 48ade08a058e7771490016ae786d76bbf264d085 | |
parent | 1bbff030380ff35f37bece2d300394da71b3a20d (diff) | |
download | chocolate-doom-f0b7b5b83f9f40d421289f593f47b82e54709d0d.tar.gz chocolate-doom-f0b7b5b83f9f40d421289f593f47b82e54709d0d.tar.bz2 chocolate-doom-f0b7b5b83f9f40d421289f593f47b82e54709d0d.zip |
Fix angle calculation in sound code.
Subversion-branch: /branches/raven-branch
Subversion-revision: 1277
-rw-r--r-- | src/heretic/s_sound.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |