- eliminated use of one more tile index in Exhumed.

This commit is contained in:
Christoph Oelckers 2023-05-20 18:27:12 +02:00
parent fd9a9232af
commit 9bf028b7f0
2 changed files with 4 additions and 3 deletions

View file

@ -419,7 +419,7 @@ static int DoStatic(int a, int b)
const int bottom = y + a;
const int right = left + b;
const auto pixels = GetWritablePixels(tileGetTextureID(kTileLoboLaptop), true);
const auto pixels = GetWritablePixels(aTexIds[kTexTileLoboLaptop], true);
auto pTile = (pixels + (200 * y)) + left;
for(;y < bottom; y++)
@ -432,12 +432,12 @@ static int DoStatic(int a, int b)
*pixel++ = RandomBit() * 16;
}
}
return tileGetTexture(kTileLoboLaptop)->GetID().GetIndex();
return aTexIds[kTexTileLoboLaptop].GetIndex();
}
static int UndoStatic()
{
const auto texid = tileGetTextureID(kTileLoboLaptop);
const auto texid = aTexIds[kTexTileLoboLaptop];
GetWritablePixels(texid, true);
return texid.GetIndex();
}

View file

@ -35,3 +35,4 @@ x(Urn3)
x(Urn4)
x(SkullHead)
x(SkullJaw)
x(TileLoboLaptop)