From 67e28573030210350f99f18a6e70fd0265eeb3cf Mon Sep 17 00:00:00 2001
From: mazmazz <mar.marcoz@outlook.com>
Date: Wed, 13 Mar 2019 23:17:35 -0400
Subject: [PATCH] When changing to same music, reset the internal volume

---
 src/s_sound.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/s_sound.c b/src/s_sound.c
index 89eb697cc9..f3e3308478 100644
--- a/src/s_sound.c
+++ b/src/s_sound.c
@@ -1523,6 +1523,11 @@ void S_ChangeMusicEx(const char *mmusic, UINT16 mflags, boolean looping, UINT32
 		I_SetSongPosition(position);
 		I_FadeSong(100, fadeinms, NULL);
  	}
+	else // reset volume to 100 with same music
+	{
+		I_StopFadingSong();
+		I_SetInternalMusicVolume(100);
+	}
 }
 
 void S_StopMusic(void)
-- 
GitLab