- fixed user map music lookup for real without disabling other things.

This commit is contained in:
Christoph Oelckers 2021-12-26 13:17:10 +01:00
parent 87a32d9095
commit ccf50c7812

View file

@ -249,6 +249,8 @@ MapRecord* SetupUserMap(const char* boardfilename, const char *defaultmusic)
map->name = "";
map->SetFileName(boardfilename);
map->flags = MI_USERMAP|MI_FORCEEOG;
map->music = G_SetupFilenameBasedMusic(boardfilename, defaultmusic);
int lookup = LookupMusic(boardfilename, true);
if (lookup >= 0) map->music = fileSystem.GetFileFullName(lookup);
else map->music = defaultmusic;
return map;
}