Fix Ramses head in polymost

This commit is contained in:
nukeykt 2019-11-05 15:15:21 +09:00 committed by Christoph Oelckers
parent cb0e728722
commit 525400d36c
2 changed files with 8 additions and 0 deletions

View file

@ -3320,6 +3320,8 @@ void CopyTileToBitmap(short nSrcTile, short nDestTile, int xPos, int yPos)
// reset pDestB // reset pDestB
pDestB = pDest; pDestB = pDest;
} }
tileInvalidate(nDestTile, -1, -1);
} }
int CopyCharToBitmap(char nChar, int nTile, int xPos, int yPos) int CopyCharToBitmap(char nChar, int nTile, int xPos, int yPos)
@ -3542,6 +3544,7 @@ void InitSpiritHead()
nHeadTimeStart = (int)totalclock; nHeadTimeStart = (int)totalclock;
memset(worktile, -1, sizeof(worktile)); memset(worktile, -1, sizeof(worktile));
tileInvalidate(kTileRamsesWorkTile, -1, -1);
nPixelsToShow = 0; nPixelsToShow = 0;
@ -3621,6 +3624,8 @@ int DoSpiritHead()
nVertPan[0] += (nDestVertPan[0] - nVertPan[0]) / 4; nVertPan[0] += (nDestVertPan[0] - nVertPan[0]) / 4;
tileInvalidate(kTileRamsesWorkTile, -1, -1);
if (nHeadStage < 2) if (nHeadStage < 2)
{ {
memset(worktile, -1, sizeof(worktile)); memset(worktile, -1, sizeof(worktile));

View file

@ -150,6 +150,8 @@ void DoEnergyTile()
} }
} }
tileInvalidate(kEnergy1, -1, -1);
if (nSmokeSparks) if (nSmokeSparks)
{ {
uint8_t *c = &energytile[67]; // TODO - checkme uint8_t *c = &energytile[67]; // TODO - checkme
@ -274,6 +276,7 @@ void DoEnergyTile()
energytile[val] = 195; energytile[val] = 195;
word_9AB5B = 1; word_9AB5B = 1;
} }
tileInvalidate(kEnergy2, -1, -1);
} }
} }