- added precaching of textures via MAPINFO.
This commit is contained in:
parent
267054071f
commit
3849cb8623
3 changed files with 26 additions and 0 deletions
|
|
@ -1243,6 +1243,12 @@ void FTextureManager::PrecacheLevel (void)
|
|||
memset (hitlist, 0, cnt);
|
||||
|
||||
screen->GetHitlist(hitlist);
|
||||
|
||||
for (unsigned i = 0; i < level.info->PrecacheTextures.Size(); i++)
|
||||
{
|
||||
hitlist[level.info->PrecacheTextures[i].GetIndex()] |= 1;
|
||||
}
|
||||
|
||||
for (int i = cnt - 1; i >= 0; i--)
|
||||
{
|
||||
Renderer->PrecacheTexture(ByIndex(i), hitlist[i]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue