From 40265e649f924b6da1594bdc9e56cb6b25d55154 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 5 Nov 2023 14:39:49 +0100 Subject: [PATCH] Exhumed: fixed radial damage push factor. The original did 'bsin(x) >> 3' with vel being Q18.14 and bsin also returning Q18.14. So for fully floatified values we still must multiply by 1/8, not 128. --- source/games/exhumed/src/runlist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/games/exhumed/src/runlist.cpp b/source/games/exhumed/src/runlist.cpp index 46aca4caf..13b4156ce 100644 --- a/source/games/exhumed/src/runlist.cpp +++ b/source/games/exhumed/src/runlist.cpp @@ -1790,7 +1790,7 @@ int runlist_CheckRadialDamage(DExhumedActor* pActor) } else { - pActor->vel.XY() += nVel.XY() * 128.; + pActor->vel.XY() += nVel.XY() * 0.125; } } }