From 962438bddc689d2dad693e14fdbc84aa5e76b06d Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sat, 13 Jan 2024 01:03:23 +0900 Subject: [PATCH] [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. --- libs/audio/renderer/snd_sfx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/audio/renderer/snd_sfx.c b/libs/audio/renderer/snd_sfx.c index 2082db1e0..acd18717d 100644 --- a/libs/audio/renderer/snd_sfx.c +++ b/libs/audio/renderer/snd_sfx.c @@ -203,6 +203,7 @@ static void s_gamedir (int phase, void *data) { snd_num_sfx = 0; + Hash_FlushTable (snd_sfx_hash); } static void