From 8f679ecf610f5be78778744f1e271adab0e452c9 Mon Sep 17 00:00:00 2001 From: Mitch Richters Date: Sat, 30 Oct 2021 14:51:54 +1100 Subject: [PATCH] - Exhumed: Repair math for chase camp `gi` functions. --- source/games/exhumed/src/exhumed.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/games/exhumed/src/exhumed.h b/source/games/exhumed/src/exhumed.h index 63d4b60ac..40d5d7a47 100644 --- a/source/games/exhumed/src/exhumed.h +++ b/source/games/exhumed/src/exhumed.h @@ -242,9 +242,9 @@ struct GameInterface : public ::GameInterface int playerKeyMove() override { return 6; } void WarpToCoords(int x, int y, int z, int a, int h) override; void ToggleThirdPerson() override; - int chaseCamX(binangle ang) { return -ang.bcos() / 12; } - int chaseCamY(binangle ang) { return -ang.bsin() / 12; } - int chaseCamZ(fixedhoriz horiz) { return horiz.asq16() / 384; } + int chaseCamX(binangle ang) { return -(ang.bcos() * 3) >> 5; } + int chaseCamY(binangle ang) { return -(ang.bsin() * 3) >> 5; } + int chaseCamZ(fixedhoriz horiz) { return (horiz.asq16() * 3) >> 10; } void processSprites(spritetype* tsprite, int& spritesortcnt, int viewx, int viewy, int viewz, binangle viewang, double smoothRatio) override; int GetCurrentSkill() override;