mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-31 05:00:35 +00:00
seems to fix going from start to e1m1 in nq
This commit is contained in:
parent
d67cbeae7f
commit
d9b7ccd5e3
1 changed files with 3 additions and 2 deletions
|
@ -371,9 +371,9 @@ s_updateAmbientSounds (void)
|
||||||
}
|
}
|
||||||
sfx = ambient_sfx[ambient_channel];
|
sfx = ambient_sfx[ambient_channel];
|
||||||
if (!sfx) {
|
if (!sfx) {
|
||||||
if (chan && chan->sfx && !chan->stop)
|
if (chan)
|
||||||
SND_ChannelStop (chan);
|
SND_ChannelStop (chan);
|
||||||
ambient_channels[ambient_channel] = 0;
|
chan = ambient_channels[ambient_channel] = 0;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -387,6 +387,7 @@ s_updateAmbientSounds (void)
|
||||||
sfx->retain (sfx);
|
sfx->retain (sfx);
|
||||||
} else {
|
} else {
|
||||||
sfx = chan->sfx;
|
sfx = chan->sfx;
|
||||||
|
sfx->retain (sfx);//FIXME why is this needed?
|
||||||
}
|
}
|
||||||
// sfx will be written to chan->sfx later to ensure mixer doesn't use
|
// sfx will be written to chan->sfx later to ensure mixer doesn't use
|
||||||
// channel prematurely.
|
// channel prematurely.
|
||||||
|
|
Loading…
Reference in a new issue