From 6e2f8ec47f44d9b8b7548f49acaa10638af500d2 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 13 Oct 2021 00:42:45 +0200 Subject: [PATCH] - vel replacements. --- source/games/blood/src/nnexts.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/games/blood/src/nnexts.cpp b/source/games/blood/src/nnexts.cpp index 128b788f6..20a604953 100644 --- a/source/games/blood/src/nnexts.cpp +++ b/source/games/blood/src/nnexts.cpp @@ -1128,10 +1128,10 @@ static void windGenDoVerticalWind(int factor, int nSector) } val = -MulScale(factor * 64, 0x10000, 16); - if (zvel[pSpr->index] >= 0) zvel[pSpr->index] += val; - else zvel[pSpr->index] = val; + if (actor->zvel() >= 0) actor->zvel() += val; + else actor->zvel() = val; - pSpr->z += zvel[pSpr->index] >> 12; + pSpr->z += actor->zvel() >> 12; }