Disable S_ClearSoundLocks, preventing sounds from being marking purgable, and causing them to get prematurely evicted.

This fixes the absent sound issues in WWII GI.

git-svn-id: https://svn.eduke32.com/eduke32@6874 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2018-05-03 04:44:36 +00:00
parent 6688860ef7
commit d31ae817f1

View file

@ -932,6 +932,7 @@ void S_Callback(uint32_t num)
void S_ClearSoundLocks(void) void S_ClearSoundLocks(void)
{ {
#ifdef CACHING_DOESNT_SUCK
int32_t i; int32_t i;
int32_t const msp = g_highestSoundIdx; int32_t const msp = g_highestSoundIdx;
@ -942,6 +943,7 @@ void S_ClearSoundLocks(void)
for (i = 0; i <= msp; ++i) for (i = 0; i <= msp; ++i)
if (g_soundlocks[i] >= 200) if (g_soundlocks[i] >= 200)
g_soundlocks[i] = 199; g_soundlocks[i] = 199;
#endif
} }
int32_t A_CheckSoundPlaying(int32_t i, int32_t num) int32_t A_CheckSoundPlaying(int32_t i, int32_t num)