From: havoc Date: Sat, 20 Nov 2004 11:49:41 +0000 (+0000) Subject: changed S_StartSound to start a sound even if it has no fetcher, as the fetcher isn... X-Git-Tag: xonotic-v0.1.0preview~5360 X-Git-Url: https://de.git.xonotic.org/?a=commitdiff_plain;h=2c5fcd2ef34bf993f0ae5cb573dbc51dae911faa;p=xonotic%2Fdarkplaces.git changed S_StartSound to start a sound even if it has no fetcher, as the fetcher isn't set until it is loaded... and it isn't loaded until it is played if it was not precached... and it's being unprecached by the S_ServerSounds function even if it's an engine sound... git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4776 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/snd_main.c b/snd_main.c index 143eeaa8..3672c680 100644 --- a/snd_main.c +++ b/snd_main.c @@ -527,7 +527,7 @@ int S_StartSound (int entnum, int entchannel, sfx_t *sfx, vec3_t origin, float f int ch_idx; size_t skip; - if (!sound_started || !sfx || !sfx->fetcher || nosound.integer) + if (!sound_started || !sfx || nosound.integer) return -1; // Pick a channel to play on