remove usefulness and volume from sfxinfo_struct struct
those are unused anyways, hope this doesent break shit lol
This commit is contained in:
1 parent
94e86dda50
commit
36923feef3
3 files changed
+887
-908
No files matched your search
@@ -602,12 +602,6 @@ void S_StartSoundAtVolume(const void *origin_p, sfxenum_t sfx_id, INT32 volume)
|
||||
sfx->data = I_GetSfx(sfx);
|
||||
}
|
||||
|
||||
// increase the usefulness
|
||||
if (sfx->usefulness++ < 0)
|
||||
{
|
||||
sfx->usefulness = -1;
|
||||
}
|
||||
|
||||
// Avoid channel reverse if surround
|
||||
if (reverse)
|
||||
{
|
||||
@@ -901,8 +895,6 @@ static void S_StopChannel(INT32 cnum)
|
||||
if (cnum != i && c->sfxinfo == channels[i].sfxinfo)
|
||||
break;
|
||||
|
||||
// degrade usefulness of sound data
|
||||
c->sfxinfo->usefulness--;
|
||||
c->sfxinfo = 0;
|
||||
}
|
||||
|
||||
@@ -1171,7 +1163,6 @@ void S_InitSfxChannels(INT32 sfxVolume)
|
||||
// Note that sounds have not been cached (yet).
|
||||
for (i = 1; i < NUMSFX; i++)
|
||||
{
|
||||
S_sfx[i].usefulness = -1; // for I_GetSfx()
|
||||
S_sfx[i].lumpnum = LUMPERROR;
|
||||
}
|
||||
|
||||
|
||||
+887
-891
File diff suppressed because it is too large.
Load diff
@@ -78,9 +78,6 @@ struct sfxinfo_struct
|
||||
// pitch if a link
|
||||
INT32 pitch;
|
||||
|
||||
// volume if a link
|
||||
INT32 volume;
|
||||
|
||||
// sound data
|
||||
void *data;
|
||||
|
||||
@@ -91,11 +88,6 @@ struct sfxinfo_struct
|
||||
// 0 up to (NUMSKINSOUNDS-1), -1 = not skin specifc
|
||||
INT32 skinsound;
|
||||
|
||||
// this is checked every second to see if sound
|
||||
// can be thrown out (if 0, then decrement, if -1,
|
||||
// then throw out, if > 0, then it is in use)
|
||||
INT32 usefulness;
|
||||
|
||||
// lump number of sfx
|
||||
lumpnum_t lumpnum;
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user