mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-22 02:42:20 +00:00
Legacy moment
This commit is contained in:
parent
454682df70
commit
8d65ce81c7
1 changed files with 2 additions and 8 deletions
|
@ -1043,7 +1043,6 @@ void S_ClearSfx(void)
|
|||
|
||||
static void S_StopChannel(INT32 cnum)
|
||||
{
|
||||
INT32 i;
|
||||
channel_t *c = &channels[cnum];
|
||||
|
||||
if (c->sfxinfo)
|
||||
|
@ -1052,17 +1051,12 @@ static void S_StopChannel(INT32 cnum)
|
|||
if (I_SoundIsPlaying(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
|
||||
c->sfxinfo->usefulness--;
|
||||
|
||||
c->sfxinfo = 0;
|
||||
}
|
||||
|
||||
c->origin = NULL;
|
||||
}
|
||||
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue