- fixed music setup for Duke3D.

The parser prepends a '/' to the names which needs to be removed when looking up the music.
This commit is contained in:
Christoph Oelckers 2020-06-20 09:38:30 +02:00
parent 550576d94d
commit 7edcd3125a

View file

@ -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;