This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to annotated tag 1.42d
in repository iortcw.

commit 9b26b0df42fe6585456e1c9fa7da11e7ead87dd8
Author: m4n4t4...@gmail.com 
<m4n4t4...@gmail.com@e65d2741-a53d-b2dc-ae96-bb75fa5e4c4a>
Date:   Mon Aug 4 20:03:05 2014 +0000

    SP: Add cvar to adjust talk animations in OpenAL
---
 SP/code/client/snd_openal.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/SP/code/client/snd_openal.c b/SP/code/client/snd_openal.c
index ac238d1..0d83859 100644
--- a/SP/code/client/snd_openal.c
+++ b/SP/code/client/snd_openal.c
@@ -44,6 +44,7 @@ cvar_t *s_alDevice;
 cvar_t *s_alInputDevice;
 cvar_t *s_alAvailableDevices;
 cvar_t *s_alAvailableInputDevices;
+cvar_t *s_alTalkAnims;
 
 static qboolean enumeration_ext = qfalse;
 static qboolean enumeration_all_ext = qfalse;
@@ -1325,7 +1326,7 @@ static void S_AL_MainStartSound( vec3_t origin, int 
entnum, int entchannel, sfxH
 
        if ( entnum < MAX_CLIENTS && entchannel == CHAN_VOICE )
        {
-               s_entityTalkAmplitude[entnum] = (unsigned char)AL_GAIN;
+               s_entityTalkAmplitude[entnum] = (unsigned 
char)(s_alTalkAnims->integer);
        }
 
        // Try to grab a source
@@ -2343,7 +2344,7 @@ int S_AL_GetVoiceAmplitude( int entityNum ) {
                return 0;
        }
 
-       return (int)s_entityTalkAmplitude[entityNum] * 18;
+       return (int)s_entityTalkAmplitude[entityNum];
 }
 
 //===========================================================================
@@ -2667,6 +2668,7 @@ qboolean S_AL_Init( soundInterface_t *si )
        s_alMaxDistance = Cvar_Get("s_alMaxDistance", "1024", CVAR_ARCHIVE);
        s_alRolloff = Cvar_Get( "s_alRolloff", "1.3", CVAR_ARCHIVE);
        s_alGraceDistance = Cvar_Get("s_alGraceDistance", "512", CVAR_ARCHIVE);
+       s_alTalkAnims = Cvar_Get("s_alTalkAnims", "160", CVAR_ARCHIVE);
 
        s_alDriver = Cvar_Get( "s_alDriver", ALDRIVER_DEFAULT, CVAR_ARCHIVE | 
CVAR_LATCH );
 

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-games/iortcw.git

_______________________________________________
Pkg-games-commits mailing list
Pkg-games-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

Reply via email to