- added workaround to Dehacked so that „Doom“ only replaces the music name

Of all these short strings this is the only one that occurs elsewhere as well.
This commit is contained in:
Christoph Oelckers 2022-04-22 00:53:27 +02:00
commit 6cb035b7b2

View file

@ -2753,7 +2753,17 @@ static int PatchText (int oldSize)
// Search through most other texts
const char *str;
do
// hackhack: If the given string is "Doom", only replace "MUSIC_DOOM".
// This is the only music or texture name clashing with common words in the string table.
if (!stricmp(oldStr, "Doom"))
{
str = "MUSIC_DOOM";
TableElement te = { LumpFileNum, { newStrData, newStrData, newStrData, newStrData } };
DehStrings.Insert(str, te);
good = true;
}
else do
{
oldStrData.MergeChars(' ');
str = EnglishStrings.MatchString(oldStr);