From 1fd66681d2bebc83fb5f8e0aa3fd15ffbefdf03f Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Fri, 13 Aug 2021 08:16:24 +1000 Subject: [PATCH] - Blood: Add interpolation repair for `kQAVVDUP` (res_id: 100). --- 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 f8a488884..ee1adbb17 100644 --- a/source/games/blood/src/qav.cpp +++ b/source/games/blood/src/qav.cpp @@ -1133,6 +1133,12 @@ static void qavRepairTileData(QAV* pQAV) pQAV->frames[i].tiles[1].picnum = 2351; } break; + case kQAVVDUP: + // VDUP requires tile indices on the last frame to be swapped around. + backup = pQAV->frames[pQAV->nFrames-1].tiles[0]; + pQAV->frames[pQAV->nFrames-1].tiles[0] = pQAV->frames[pQAV->nFrames - 1].tiles[1]; + pQAV->frames[pQAV->nFrames-1].tiles[1] = backup; + break; default: return; }