projects
/
quix0rs-blobwars.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb4e61f
)
Reduce stereo angle for sound effects a bit.
author
Guus Sliepen
<guus@debian.org>
Sun, 9 Aug 2015 15:34:54 +0000
(17:34 +0200)
committer
Guus Sliepen
<guus@debian.org>
Sun, 9 Aug 2015 15:34:54 +0000
(17:34 +0200)
src/CAudio.cpp
patch
|
blob
|
history
diff --git
a/src/CAudio.cpp
b/src/CAudio.cpp
index e20aece8f6b935ac9cad541e5cf2df9429bd7601..c713aaa396d25d921cec4be4210e5842c43ba254 100644
(file)
--- a/
src/CAudio.cpp
+++ b/
src/CAudio.cpp
@@
-188,7
+188,7
@@
void Audio::playSoundRelative(int snd, int channel, float x)
return;
}
- int angle = atanf(x /
32
0) * 180 / M_PI;
+ int angle = atanf(x /
48
0) * 180 / M_PI;
int attenuation = fabsf(x) / 40;
if (angle < 0)