From 46efa73d5f3cf7da8dc47e2d64485b034f4bdfac Mon Sep 17 00:00:00 2001 From: NepDisk <16447892+NepDisk@users.noreply.github.com> Date: Mon, 21 Oct 2024 23:55:41 -0400 Subject: [PATCH] Fix mapid music lumps --- src/s_sound.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/s_sound.c b/src/s_sound.c index 3413f05a9..e95c110ed 100644 --- a/src/s_sound.c +++ b/src/s_sound.c @@ -2521,7 +2521,12 @@ void S_InitLevelMusic(boolean fromnetsave) mapmusrng = 0; } } - strncpy(mapmusname, mapheaderinfo[gamemap-1]->musname[mapmusrng], 7); + + if (mapheaderinfo[gamemap-1]->musname[0][0] == 0) + strncpy(mapmusname, va("%sM", G_BuildMapName(gamemap)), 7); + else + strncpy(mapmusname, mapheaderinfo[gamemap-1]->musname[mapmusrng], 7); + mapmusname[6] = 0; mapmusflags = (mapheaderinfo[gamemap-1]->mustrack & MUSIC_TRACKMASK); mapmusposition = mapheaderinfo[gamemap-1]->muspos;