- changed precaching setup for Exhumed.

This looks overly simplistic - I doubt it's enough to catch everything.
This commit is contained in:
Christoph Oelckers 2021-04-11 10:54:10 +02:00
parent e4cf768fa8
commit d663d84596

View file

@ -34,11 +34,6 @@ void resettiming()
lastTic = -1; lastTic = -1;
} }
void doTileLoad(int i)
{
if (r_precache) PrecacheHardwareTextures(i);
}
void precache() void precache()
{ {
int i; int i;
@ -46,15 +41,15 @@ void precache()
for (i = 0; i < numsectors; i++) for (i = 0; i < numsectors; i++)
{ {
short j = sector[i].ceilingpicnum; short j = sector[i].ceilingpicnum;
doTileLoad(j); markTileForPrecache(j, sector[i].ceilingpal);
j = sector[i].floorpicnum; j = sector[i].floorpicnum;
doTileLoad(j); markTileForPrecache(j, sector[i].floorpal);
} }
for (i = 0; i < numwalls; i++) for (i = 0; i < numwalls; i++)
{ {
short j = wall[i].picnum; short j = wall[i].picnum;
doTileLoad(j); markTileForPrecache(j, wall[i].pal);
} }
for (i = 0; i < kMaxSprites; i++) for (i = 0; i < kMaxSprites; i++)
@ -62,8 +57,9 @@ void precache()
if (sprite[i].statnum < kMaxStatus) if (sprite[i].statnum < kMaxStatus)
{ {
short j = sprite[i].picnum; short j = sprite[i].picnum;
doTileLoad(j); markTileForPrecache(j, sprite[i].pal);
} }
} }
precacheMarkedTiles();
} }
END_PS_NS END_PS_NS