git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2887
d7cf8633-e32d-0410-b094-
e92efae38249
Sys_Error ("S_FindName: out of sfx_t");
sfx = &known_sfx[i];
+ memset(sfx, 0, sizeof(*sfx));
strcpy (sfx->name, name);
num_sfx++;
// calc ambient sound levels
for (ambient_channel = 0 ; ambient_channel< NUM_AMBIENTS ; ambient_channel++)
{
+ if (ambient_sfx[ambient_channel] && ambient_sfx[ambient_channel]->silentlymissing)
+ continue;
chan = &channels[ambient_channel];
chan->sfx = ambient_sfx[ambient_channel];
if (!data)
{
+ s->silentlymissing = !complain;
if (complain)
Con_Printf ("Couldn't load %s\n", namebuffer);
return NULL;
char name[MAX_QPATH];
mempool_t *mempool;
sfxcache_t *sfxcache;
+ int silentlymissing; // true if missing and loaded with complain = false
} sfx_t;
typedef struct