'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
This commit is contained in:
terminx 2019-08-07 22:43:53 +00:00 committed by Christoph Oelckers
parent 9021b885d6
commit aec48c73c1

View file

@ -400,7 +400,9 @@ void S_Cleanup(void)
// for which there was no open slot to keep track of the voice // for which there was no open slot to keep track of the voice
if (num >= (MAXSOUNDS*MAXSOUNDINSTANCES)) if (num >= (MAXSOUNDS*MAXSOUNDINSTANCES))
{ {
#ifdef CACHING_DOESNT_SUCK
--g_soundlocks[num-(MAXSOUNDS*MAXSOUNDINSTANCES)]; --g_soundlocks[num-(MAXSOUNDS*MAXSOUNDINSTANCES)];
#endif
continue; continue;
} }
@ -429,7 +431,9 @@ void S_Cleanup(void)
voice.dist = UINT16_MAX; voice.dist = UINT16_MAX;
voice.clock = 0; voice.clock = 0;
#ifdef CACHING_DOESNT_SUCK
--g_soundlocks[num]; --g_soundlocks[num];
#endif
} }
} }