- Got rid of most TexMan.AddPatch calls because they are no longer needed.
- Got rid of R_InitPatches because the new texture init code needs to preload everything to work correctly. - Rewrote texture manager initialization to order textures primarily by WAD rather than by type. This way later textures will always override earlier ones. The only exception is that TEX_MiscPatch are only used as a fallback if nothing else can be found. - Optimized the tryany case of FTextureManager::CheckForTexture. It is not necessary to scan the hash chain twice. The required information can be retrieved during the first pass as easily and even offers a little more control. - Made FFont destructor virtual. - Added 'Ice' translation to DECORATE. (Caution: Not fully tested yet!) SVN r715 (trunk)
This commit is contained in:
parent
58816f5d09
commit
1b28557341
20 changed files with 1430 additions and 1364 deletions
|
|
@ -1466,10 +1466,9 @@ void M_DrawReadThis ()
|
|||
{
|
||||
tex = TexMan[gameinfo.info.infoPage[InfoType-1]];
|
||||
// Did the mapper choose a custom help page via MAPINFO?
|
||||
if((level.f1 != NULL) && (strcmp(level.f1, "") != 0)) {
|
||||
if(TexMan.CheckForTexture(level.f1,0,0) == -1)
|
||||
TexMan.AddPatch(level.f1); // Needs to be marked as a patch.
|
||||
tex = TexMan[level.f1];
|
||||
if((level.f1 != NULL) && (strlen(level.f1) > 0))
|
||||
{
|
||||
tex = TexMan.FindTexture(level.f1);
|
||||
}
|
||||
|
||||
if (InfoType > 1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue