mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-22 12:11:25 +00:00
- 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:
parent
0fa830ddd7
commit
6cb035b7b2
1 changed files with 11 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue