- fixed resolving of music aliases with full filenames

https://forum.zdoom.org/viewtopic.php?t=66815
This commit is contained in:
alexey.lysiuk 2020-01-06 11:15:17 +02:00
parent 83f46c4b2f
commit cad14d1c93

View file

@ -1212,7 +1212,7 @@ static void S_AddSNDINFO (int lump)
FName mapped = sc.String; FName mapped = sc.String;
// only set the alias if the lump it maps to exists. // only set the alias if the lump it maps to exists.
if (mapped == NAME_None || Wads.CheckNumForName(sc.String, ns_music) >= 0) if (mapped == NAME_None || Wads.CheckNumForFullName(sc.String, true, ns_music) >= 0)
{ {
MusicAliases[alias] = mapped; MusicAliases[alias] = mapped;
} }