- fixed World Tour fallback sound lookup.

This commit is contained in:
Christoph Oelckers 2022-12-11 22:15:59 +01:00 committed by Mitchell Richters
parent 1e249d3536
commit 1f7954fc29

View file

@ -773,7 +773,7 @@ void S_WorldTourMappingsForOldSounds()
for(unsigned i = 1; i < maxsnd; i++)
{
auto sfx = soundEngine->GetSfx(FSoundID::fromInt(i));
FString fname = sfx->name.GetChars();
FString fname = fileSystem.GetFileFullName(sfx->lumpnum);
if (!fname.Right(4).CompareNoCase(".ogg"))
{
// All names here follow the same convention. We must strip the "sound/" folder and replace the extension to get the original VOCs.