Legacy moment
This commit is contained in:
parent
454682df70
commit
8d65ce81c7
|
@ -1043,7 +1043,6 @@ void S_ClearSfx(void)
|
||||||
|
|
||||||
static void S_StopChannel(INT32 cnum)
|
static void S_StopChannel(INT32 cnum)
|
||||||
{
|
{
|
||||||
INT32 i;
|
|
||||||
channel_t *c = &channels[cnum];
|
channel_t *c = &channels[cnum];
|
||||||
|
|
||||||
if (c->sfxinfo)
|
if (c->sfxinfo)
|
||||||
|
@ -1052,17 +1051,12 @@ static void S_StopChannel(INT32 cnum)
|
||||||
if (I_SoundIsPlaying(c->handle))
|
if (I_SoundIsPlaying(c->handle))
|
||||||
I_StopSound(c->handle);
|
I_StopSound(c->handle);
|
||||||
|
|
||||||
// check to see
|
|
||||||
// if other channels are playing the sound
|
|
||||||
for (i = 0; i < numofchannels; i++)
|
|
||||||
if (cnum != i && c->sfxinfo == channels[i].sfxinfo)
|
|
||||||
break;
|
|
||||||
|
|
||||||
// degrade usefulness of sound data
|
// degrade usefulness of sound data
|
||||||
c->sfxinfo->usefulness--;
|
c->sfxinfo->usefulness--;
|
||||||
|
|
||||||
c->sfxinfo = 0;
|
c->sfxinfo = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
c->origin = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in a new issue