mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-10 07:11:46 +00:00
* Fixes to some muppetry in snd_dma.c (arQon)
This commit is contained in:
parent
50783f1dbb
commit
cb06e3e93a
1 changed files with 3 additions and 2 deletions
|
@ -493,8 +493,8 @@ void S_Base_StartSound(vec3_t origin, int entityNum, int entchannel, sfxHandle_t
|
||||||
ch = s_channels;
|
ch = s_channels;
|
||||||
inplay = 0;
|
inplay = 0;
|
||||||
for ( i = 0; i < MAX_CHANNELS ; i++, ch++ ) {
|
for ( i = 0; i < MAX_CHANNELS ; i++, ch++ ) {
|
||||||
if (ch[i].entnum == entityNum && ch[i].thesfx == sfx) {
|
if (ch->entnum == entityNum && ch->thesfx == sfx) {
|
||||||
if (time - ch[i].allocTime < 50) {
|
if (time - ch->allocTime < 50) {
|
||||||
// if (Cvar_VariableValue( "cg_showmiss" )) {
|
// if (Cvar_VariableValue( "cg_showmiss" )) {
|
||||||
// Com_Printf("double sound start\n");
|
// 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) {
|
if (chosen == -1) {
|
||||||
|
ch = s_channels;
|
||||||
if (ch->entnum == listener_number) {
|
if (ch->entnum == listener_number) {
|
||||||
for ( i = 0 ; i < MAX_CHANNELS ; i++, ch++ ) {
|
for ( i = 0 ; i < MAX_CHANNELS ; i++, ch++ ) {
|
||||||
if (ch->allocTime<oldest) {
|
if (ch->allocTime<oldest) {
|
||||||
|
|
Loading…
Reference in a new issue