- sanitized walock.

Sorry, but having a globally writable pointer to every texture is just insane and makes any functional management impossible.
This is merely a preparation for adding a real texture manager. That cannot be done if any code can write over the data at will. For that, it now has to make the texture writable first or create a writable empty texture.
This commit is contained in:
Christoph Oelckers 2019-10-11 23:31:59 +02:00
parent 3621aae3f0
commit fbc22e0125
31 changed files with 185 additions and 193 deletions

View file

@ -631,7 +631,7 @@ void DoTheCache(void)
for (i = 0; i < MAXTILES; i++)
{
if ((TEST(gotpic[i>>3], 1<<(i&7))) && (!waloff[i]))
if ((TEST(gotpic[i>>3], 1<<(i&7))) && (!tilePtr(i)))
{
tileLoad(i);
cnt++;