From 6fcc40748c390df5fbe54e51681d6696ec97b7f1 Mon Sep 17 00:00:00 2001 From: Alug Date: Thu, 5 Dec 2024 08:07:52 +0100 Subject: [PATCH] reduce the scope of those only this function needs those --- src/s_sound.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/s_sound.c b/src/s_sound.c index d6b481512..3d3c2bb27 100644 --- a/src/s_sound.c +++ b/src/s_sound.c @@ -1992,8 +1992,6 @@ boolean S_FadeOutStopMusic(UINT32 ms) return false; }*/ -static INT16 oldmap = 0; -static boolean oldencore = false; static boolean skipmusic = false; boolean skipintromus = false; @@ -2034,6 +2032,9 @@ static void S_CheckEventMus(const char *newmus) //makes tunes work and stuff void S_CheckMap(void) { + static INT16 oldmap = 0; + static boolean oldencore = false; + if (!cv_keepmusic.value) { keepmusic = false;