]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - snd_main.c
S_PrecacheSound now clears the SFXFLAG_FILEMISSING flag so that loading will try...
[xonotic/darkplaces.git] / snd_main.c
index 6e224f55a5fd0e33618e6b11d40b453ae3923100..b00852daca62da1cd36e283926665bae4aaa513f 100644 (file)
@@ -949,6 +949,11 @@ sfx_t *S_PrecacheSound (const char *name, qboolean complain, qboolean lock)
                return NULL;
 
        sfx = S_FindName (name);
+
+       // clear the FILEMISSING flag so that S_LoadSound will try again on a
+       // previously missing file
+       sfx->flags &= ~ SFXFLAG_FILEMISSING;
+
        if (sfx == NULL)
                return NULL;