mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-31 04:20:42 +00:00
- fixed user map music lookup for real without disabling other things.
This commit is contained in:
parent
87a32d9095
commit
ccf50c7812
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue