- fixed: Multipatch textures may not set up their patch references until all textures have been loaded.
If done earlier they will not be able to detect overrides of sprites and graphics which are not part of the PATCHES lump. There was some fudging code to work around this problem but it was only partially working. Now these textures only collect the texture name and use type during setup and resolve them after all textures have been created.
This commit is contained in:
parent
93ec6eb92e
commit
4e4fd97950
3 changed files with 110 additions and 82 deletions
|
|
@ -981,6 +981,10 @@ void FTextureManager::Init()
|
|||
{
|
||||
AddTexturesForWad(i);
|
||||
}
|
||||
for (unsigned i = 0; i < Textures.Size(); i++)
|
||||
{
|
||||
Textures[i].Texture->ResolvePatches();
|
||||
}
|
||||
|
||||
// Add one marker so that the last WAD is easier to handle and treat
|
||||
// Build tiles as a completely separate block.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue