diff --git a/polymer/eduke32/source/sounds.c b/polymer/eduke32/source/sounds.c index 6e6da5209..a5a5e10de 100644 --- a/polymer/eduke32/source/sounds.c +++ b/polymer/eduke32/source/sounds.c @@ -301,13 +301,6 @@ void S_Cleanup(void) { uint32_t num = ldq[--ldnum]; - // num + 65536 is a sound played globally for which there was no open slot to keep track of the voice - if (num >= 65536) - { - g_soundlocks[num-65536]--; - continue; - } - // negative index is RTS playback if ((int32_t)num < 0) { @@ -316,6 +309,13 @@ void S_Cleanup(void) continue; } + // num + 65536 is a sound played globally for which there was no open slot to keep track of the voice + if (num >= 65536) + { + g_soundlocks[num-65536]--; + continue; + } + { int32_t j = num & (MAXSOUNDINSTANCES-1); int32_t i;