diff options
author | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2008-02-10 21:01:06 +0000 |
---|---|---|
committer | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2008-02-10 21:01:06 +0000 |
commit | 7c92065644ee1df00c8b0f678eac2004bd3b3f71 (patch) | |
tree | 27d7590b1777308d99552f6580e8d84fc9c3358a /code | |
parent | aa7d5fd05d5f8bd589d7e7c5acbb81f5df438436 (diff) | |
download | ioquake3-aero-7c92065644ee1df00c8b0f678eac2004bd3b3f71.tar.gz ioquake3-aero-7c92065644ee1df00c8b0f678eac2004bd3b3f71.zip |
* Fixes to some muppetry in snd_dma.c (arQon)
git-svn-id: svn://svn.icculus.org/quake3/trunk@1252 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code')
-rw-r--r-- | code/client/snd_dma.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/code/client/snd_dma.c b/code/client/snd_dma.c index e1164a7..c1fb41e 100644 --- a/code/client/snd_dma.c +++ b/code/client/snd_dma.c @@ -493,8 +493,8 @@ void S_Base_StartSound(vec3_t origin, int entityNum, int entchannel, sfxHandle_t ch = s_channels; inplay = 0; for ( i = 0; i < MAX_CHANNELS ; i++, ch++ ) { - if (ch[i].entnum == entityNum && ch[i].thesfx == sfx) { - if (time - ch[i].allocTime < 50) { + if (ch->entnum == entityNum && ch->thesfx == sfx) { + if (time - ch->allocTime < 50) { // if (Cvar_VariableValue( "cg_showmiss" )) { // Com_Printf("double sound start\n"); // } @@ -531,6 +531,7 @@ void S_Base_StartSound(vec3_t origin, int entityNum, int entchannel, sfxHandle_t } } if (chosen == -1) { + ch = s_channels; if (ch->entnum == listener_number) { for ( i = 0 ; i < MAX_CHANNELS ; i++, ch++ ) { if (ch->allocTime<oldest) { |