- fixed: The TouchedActors array in the Dehacked parser was not freed after parsing was done.
- Initialize the alt HUD explicitly in D_DoomMain. - don't let S_UnloadReverbDef leave a broken list of sound environments behind. - Added more code to explicitly delete data before initializing it. SVN r3039 (trunk)
This commit is contained in:
parent
22372fff25
commit
770a879f6a
25 changed files with 156 additions and 38 deletions
|
|
@ -2050,6 +2050,11 @@ void V_InitFontColors ()
|
|||
|
||||
info.Index = -1;
|
||||
|
||||
TranslationParms[0].Clear();
|
||||
TranslationParms[1].Clear();
|
||||
TranslationLookup.Clear();
|
||||
TranslationColors.Clear();
|
||||
|
||||
while ((lump = Wads.FindLump ("TEXTCOLO", &lastlump)) != -1)
|
||||
{
|
||||
if (gameinfo.flags & GI_NOTEXTCOLOR)
|
||||
|
|
@ -2435,3 +2440,13 @@ void V_InitFonts()
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
void V_ClearFonts()
|
||||
{
|
||||
while (FFont::FirstFont != NULL)
|
||||
{
|
||||
delete FFont::FirstFont;
|
||||
}
|
||||
FFont::FirstFont = NULL;
|
||||
SmallFont = SmallFont2 = BigFont = ConFont = IntermissionFont = NULL;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue