From b598140f8896a3b9166a99257964474e23b7d5db Mon Sep 17 00:00:00 2001 From: gewlitys Date: Wed, 16 Jul 2003 00:45:57 +0000 Subject: [PATCH] Observer is now at the bottom of the screen in positional sounds; tuned attenuation to be less severe git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1055 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/libs/sound/sfx.c | 2 +- sc2/src/sc2code/process.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sc2/src/sc2code/libs/sound/sfx.c b/sc2/src/sc2code/libs/sound/sfx.c index c4216172c..d30adcb38 100644 --- a/sc2/src/sc2code/libs/sound/sfx.c +++ b/sc2/src/sc2code/libs/sound/sfx.c @@ -102,7 +102,7 @@ SetPositionalObject (COUNT channel, void *positional_object) void UpdateSoundPosition (COUNT channel, SoundPosition pos) { - const float ATTENUATION = 70.0f; + const float ATTENUATION = 160.0f; float fpos[3]; if (pos.positional) diff --git a/sc2/src/sc2code/process.c b/sc2/src/sc2code/process.c index b5f479960..f1a64bef6 100644 --- a/sc2/src/sc2code/process.c +++ b/sc2/src/sc2code/process.c @@ -1216,7 +1216,7 @@ CalcSoundPosition (ELEMENTPTR ElementPtr) } pos.x -= (SPACE_WIDTH >> 1); - pos.y -= (SPACE_HEIGHT >> 1); + pos.y -= (SPACE_HEIGHT); pos.positional = TRUE; }