|
|
@ -2091,13 +2091,13 @@ int SV_BuildSoundMsg( sizebuf_t *msg, edict_t *ent, int chan, const char *sample |
|
|
|
// precache_sound can be used twice: cache sounds when loading
|
|
|
|
// precache_sound can be used twice: cache sounds when loading
|
|
|
|
// and return sound index when server is active
|
|
|
|
// and return sound index when server is active
|
|
|
|
sound_idx = SV_SoundIndex( sample ); |
|
|
|
sound_idx = SV_SoundIndex( sample ); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if( !sound_idx ) |
|
|
|
if( !sound_idx ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
Con_Printf( S_ERROR "SV_StartSound: %s not precached (%d)\n", sample, sound_idx ); |
|
|
|
Con_Printf( S_ERROR "SV_StartSound: %s not precached (%d)\n", sample, sound_idx ); |
|
|
|
return 0; |
|
|
|
return 0; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
spawn = FBitSet( flags, SND_RESTORE_POSITION ) ? false : true; |
|
|
|
spawn = FBitSet( flags, SND_RESTORE_POSITION ) ? false : true; |
|
|
|
|
|
|
|
|
|
|
|