From 7edcd3125a639b92161dfd4c420b35ac5c6bc315 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 20 Jun 2020 09:38:30 +0200 Subject: [PATCH] - fixed music setup for Duke3D. The parser prepends a '/' to the names which needs to be removed when looking up the music. --- source/core/raze_music.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/core/raze_music.cpp b/source/core/raze_music.cpp index 69712ea9c..03340ae89 100644 --- a/source/core/raze_music.cpp +++ b/source/core/raze_music.cpp @@ -190,6 +190,7 @@ static FString lastMusicLevel, lastMusic; int Mus_Play(const char *mapname, const char *fn, bool loop) { if (mus_blocked) return 1; // Caller should believe it succeeded. + if (*fn == '/') fn++; // Store the requested names for resuming. lastMusicLevel = mapname; lastMusic = fn;