From c80831555ca34bd84e6ca13fa3412726589a1452 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 25 Aug 2021 08:47:40 +0200 Subject: [PATCH] - Blood: fixed broken missile collision checks. Curse that stupid bit masking madness in clipmove. As long as this code isn't properly abstracted, we still need to handle it on the game side. --- source/games/blood/src/actor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/games/blood/src/actor.cpp b/source/games/blood/src/actor.cpp index cad56fbb7..c16cbd986 100644 --- a/source/games/blood/src/actor.cpp +++ b/source/games/blood/src/actor.cpp @@ -5406,7 +5406,7 @@ int MoveMissile(DBloodActor* actor) } if (clipmoveresult.type == kHitSprite) { - gHitInfo.hitsprite = clipmoveresult.legacyVal; + gHitInfo.hitsprite = clipmoveresult.legacyVal & kHitIndexMask; cliptype = 3; } else if (clipmoveresult.type == kHitWall)