From 7f9f57e4e62c750d6b1baa936ca63dcf914f0687 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Mon, 9 Aug 2021 14:25:07 +1000 Subject: [PATCH] - Blood: Add interpolation repair for `kQAVBUNDROP` (res_id: 22). --- source/games/blood/src/qav.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/games/blood/src/qav.cpp b/source/games/blood/src/qav.cpp index 714d1831d..a4dabd9c3 100644 --- a/source/games/blood/src/qav.cpp +++ b/source/games/blood/src/qav.cpp @@ -552,6 +552,12 @@ static void qavRepairTileData(QAV* pQAV) pQAV->frames[i].tiles[2] = backup; } break; + case kQAVBUNDROP: + // BUNDROP needs frame 3 tile 1 moved to tile 2 to avoid needing its own interpolation callback. + // For frame 3, move tile index 2 into 3, and disable original index of 2. + pQAV->frames[3].tiles[2] = pQAV->frames[3].tiles[1]; + pQAV->frames[3].tiles[1].picnum = -1; + break; default: return; }