Attempt to fix music replacement definitions again

Store per-map music replacements in a TMap, and perform the replacements after parsing the MAPINFO
This commit is contained in:
Kevin Caccamo 2021-09-05 14:35:10 -04:00 committed by Christoph Oelckers
parent f675adebbd
commit 2297c9351a
4 changed files with 24 additions and 1 deletions

View file

@ -815,7 +815,7 @@ void parseMusic(FScanner& sc, FScriptPosition& pos)
if (sc.Compare("id")) sc.GetString(id);
else if (sc.Compare("file")) sc.GetString(file);
}
SetMusicForMap(id, file, true);
SetMusicReplacement(id, file);
}
//===========================================================================