From c46c52a724a83fcc7db309700535fb96decb43b4 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Sun, 22 Aug 2021 07:43:08 +1000 Subject: [PATCH] - Blood: Add interpolation properties for `kQAV2TOMFIRE` (res_id: 71). --- source/games/blood/src/qav.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/source/games/blood/src/qav.cpp b/source/games/blood/src/qav.cpp index b166f3996..76aa2b6e8 100644 --- a/source/games/blood/src/qav.cpp +++ b/source/games/blood/src/qav.cpp @@ -215,6 +215,21 @@ void qavBuildInterpProps(QAV* const pQAV) } break; } + case kQAV2TOMFIRE: + { + QAVInterpProps interp{}; + interp.flags |= true << kQAVIsLoopable; + interp.PrevTileFinder = qavGetInterpType("interpolate-index"); + qavInterpProps.Insert(pQAV->res_id, std::move(interp)); + for (int i = 0; i < pQAV->nFrames; i++) + { + for (int j = 0; j < 3; j += 2) + { + qavSetNonInterpFrameTile(pQAV->res_id, i, j); + } + } + break; + } default: { QAVInterpProps interp{};