- get rid of last tileGetTexture calls in Blood.

This commit is contained in:
Christoph Oelckers 2023-05-20 13:34:08 +02:00
parent 56f5e01c84
commit 6de41eec46
3 changed files with 4 additions and 2 deletions

View file

@ -75,7 +75,7 @@ void DoFireFrame(void)
memcpy(FrameBuffer + 16896 + i * 128, SeedBuffer[nRand], 128);
}
CellularFrame(FrameBuffer, 128, 132);
auto pData = GetWritablePixels(tileGetTextureID(2342));
auto pData = GetWritablePixels(aTexIds[kTexFIRETEX]);
uint8_t* pSource = FrameBuffer;
int x = fireSize;
do
@ -119,7 +119,7 @@ void FireInit(void)
void FireProcess(void)
{
auto tex = tileGetTexture(2342);
auto tex = TexMan.GetGameTexture(aTexIds[kTexFIRETEX]);
if (tex->isSeen(true))
{
// This assumes a smooth high frame rate. Ugh...

View file

@ -226,3 +226,4 @@ x(ROCKDEBRIS3, 2185)
x(ROCKDEBRIS4, 2155)
x(ROCKDEBRIS5, 2620)
x(ROCKDEBRIS6, 3135)
x(Firetex, 2342)

View file

@ -31,3 +31,4 @@ x(ROCKDEBRIS5)
x(ROCKDEBRIS6)
x(Titlescreen)
x(BACKTILE)
x(FIRETEX)