PCExhumed: Torch bouncing fix

This commit is contained in:
Szilárd Biró 2020-12-06 17:04:24 +01:00 committed by Christoph Oelckers
parent 1a2b93f402
commit 3713cb0f09

View file

@ -117,6 +117,14 @@ static void analyzesprites(double const smoothratio)
pTSprite->pal = RemapPLU(pTSprite->pal);
// PowerSlaveGDX: Torch bouncing fix
if ((pTSprite->picnum == kTile338 || pTSprite->picnum == kTile350) && (pTSprite->cstat & 0x80) == 0)
{
pTSprite->cstat |= 0x80;
int nTileY = (tilesiz[pTSprite->picnum].y * pTSprite->yrepeat) * 2;
pTSprite->z -= nTileY;
}
if (pSprite->statnum > 0)
{
runlist_SignalRun(pSprite->lotag - 1, nTSprite | 0x90000);