- Fixed: Hires texture replacements must call AddPatch if the texture
isn't defined yet in order to replace lumps that are not in the list of preinitialized graphics. - Changed font initialization to occur after textures have been completely initialized. This is necessary so that the font characters can be replaced with hires versions. SVN r351 (trunk)
This commit is contained in:
parent
6fe9c98b47
commit
3dabd38359
6 changed files with 74 additions and 48 deletions
|
|
@ -320,7 +320,11 @@ void FTextureManager::AddHiresTextures ()
|
|||
if (newtex != NULL)
|
||||
{
|
||||
int oldtexno = CheckForTexture(name, FTexture::TEX_Wall, TEXMAN_Overridable|TEXMAN_TryAny);
|
||||
|
||||
|
||||
if (oldtexno<0)
|
||||
{
|
||||
oldtexno = AddPatch(name);
|
||||
}
|
||||
newtex->bWorldPanning = true;
|
||||
if (oldtexno<0)
|
||||
{
|
||||
|
|
@ -380,6 +384,11 @@ void FTextureManager::LoadHiresTex()
|
|||
|
||||
int tex = TexMan.CheckForTexture(sc_String, type, mode);
|
||||
|
||||
if (tex<0)
|
||||
{
|
||||
tex= AddPatch(sc_String);
|
||||
}
|
||||
|
||||
SC_MustGetString();
|
||||
int lumpnum = Wads.CheckNumForFullName(sc_String);
|
||||
if (lumpnum < 0) lumpnum = Wads.CheckNumForName(sc_String, ns_graphics);
|
||||
|
|
@ -717,6 +726,7 @@ void R_InitData ()
|
|||
TexMan.AddHiresTextures ();
|
||||
TexMan.LoadHiresTex ();
|
||||
TexMan.DefaultTexture = TexMan.CheckForTexture ("-NOFLAT-", FTexture::TEX_Override, 0);
|
||||
V_InitFonts();
|
||||
|
||||
R_InitColormaps ();
|
||||
C_InitConsole (SCREENWIDTH, SCREENHEIGHT, true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue