mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-04-10 19:30:56 +00:00
[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:
parent
80a4970ee6
commit
962438bddc
1 changed files with 1 additions and 0 deletions
|
@ -203,6 +203,7 @@ static void
|
|||
s_gamedir (int phase, void *data)
|
||||
{
|
||||
snd_num_sfx = 0;
|
||||
Hash_FlushTable (snd_sfx_hash);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue