From 3713cb0f0966cd3ca3d8ef285af8c235ccdb4078 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szil=C3=A1rd=20Bir=C3=B3?= Date: Sun, 6 Dec 2020 17:04:24 +0100 Subject: [PATCH] PCExhumed: Torch bouncing fix --- source/exhumed/src/view.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/exhumed/src/view.cpp b/source/exhumed/src/view.cpp index 1ef967610..80df8f241 100644 --- a/source/exhumed/src/view.cpp +++ b/source/exhumed/src/view.cpp @@ -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);