mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-30 20:50:42 +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];
|
||||
if (!sfx) {
|
||||
if (chan && chan->sfx && !chan->stop)
|
||||
if (chan)
|
||||
SND_ChannelStop (chan);
|
||||
ambient_channels[ambient_channel] = 0;
|
||||
chan = ambient_channels[ambient_channel] = 0;
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -387,6 +387,7 @@ s_updateAmbientSounds (void)
|
|||
sfx->retain (sfx);
|
||||
} else {
|
||||
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
|
||||
// channel prematurely.
|
||||
|
|
Loading…
Reference in a new issue