[sound] Flush sfx hash table on gamedir change

Along with "releasing" all the sfx entries, need to flush the name
lookup so correct names don't get the wrong sounds. Fixes the ricochet
sound for rocket explosions (and shotgun sounds for nail guns) in
quakeworld.
This commit is contained in:
Bill Currie 2024-01-13 01:03:23 +09:00
parent 80a4970ee6
commit 962438bddc

View file

@ -203,6 +203,7 @@ static void
s_gamedir (int phase, void *data)
{
snd_num_sfx = 0;
Hash_FlushTable (snd_sfx_hash);
}
static void