From aec48c73c1599cdd2fac786fe14b6d3b20fbfe55 Mon Sep 17 00:00:00 2001 From: terminx Date: Wed, 7 Aug 2019 22:43:53 +0000 Subject: [PATCH] 'If' out a couple of instances of g_soundlocks[] manipulation I somehow missed during my first pass git-svn-id: https://svn.eduke32.com/eduke32@7906 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/duke3d/src/sounds.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/duke3d/src/sounds.cpp b/source/duke3d/src/sounds.cpp index 7f50e80ef..3ca275f32 100644 --- a/source/duke3d/src/sounds.cpp +++ b/source/duke3d/src/sounds.cpp @@ -400,7 +400,9 @@ void S_Cleanup(void) // for which there was no open slot to keep track of the voice if (num >= (MAXSOUNDS*MAXSOUNDINSTANCES)) { +#ifdef CACHING_DOESNT_SUCK --g_soundlocks[num-(MAXSOUNDS*MAXSOUNDINSTANCES)]; +#endif continue; } @@ -429,7 +431,9 @@ void S_Cleanup(void) voice.dist = UINT16_MAX; voice.clock = 0; +#ifdef CACHING_DOESNT_SUCK --g_soundlocks[num]; +#endif } }