From 5160b7649c72fefb22c13a3a48b0f38e188b43db Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Sat, 14 Aug 2021 11:53:35 +1000 Subject: [PATCH] - Blood: Add interpolation repair for `kQAVSGUNIDL1` (res_id: 75). --- source/games/blood/src/qav.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/games/blood/src/qav.cpp b/source/games/blood/src/qav.cpp index 01d26c2a3..15bf2b6b9 100644 --- a/source/games/blood/src/qav.cpp +++ b/source/games/blood/src/qav.cpp @@ -961,6 +961,14 @@ static void qavRepairTileData(QAV* pQAV) pQAV->frames[0].tiles[1].x -= pQAV->frames[1].tiles[0].x - pQAV->frames[0].tiles[0].x; pQAV->frames[0].tiles[1].y -= pQAV->frames[1].tiles[0].y - pQAV->frames[0].tiles[0].y; break; + case kQAVSGUNIDL1: + // SGUNIDL1 has overlay 3232 permanently applied which is at odds with the weapon rising, + // and the other idling QAV. Disable it entirely. + for (i = 0; i < pQAV->nFrames; i++) + { + pQAV->frames[i].tiles[1].picnum = -1; + } + break; default: return; }