From 6a091deb6706d21b40bc14e1b87c2a1548012956 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Thu, 17 Sep 2020 07:25:19 +1000 Subject: [PATCH] - Blood: Re-apply input scaling removed in 495c522096e0c9b31bdf6952e612bc3d03030da2 until the entire return to centre function is standardised across games. --- source/blood/src/player.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/blood/src/player.cpp b/source/blood/src/player.cpp index 118264e55..d75eb4b1e 100644 --- a/source/blood/src/player.cpp +++ b/source/blood/src/player.cpp @@ -1375,7 +1375,7 @@ void sethorizon(PLAYER *pPlayer, fixed_t const q16horz, double const scaleAdjust pPlayer->q16look = max(pPlayer->q16look - FloatToFixed(scaleAdjust * 4.), IntToFixed(-60)); } - pPlayer->q16look = clamp(pPlayer->q16look, IntToFixed(-60), IntToFixed(60)); + pPlayer->q16look = clamp(pPlayer->q16look + xs_CRoundToInt(q16horz / 3.25), IntToFixed(-60), IntToFixed(60)); if (pPlayer->q16look > 0) { @@ -1387,7 +1387,7 @@ void sethorizon(PLAYER *pPlayer, fixed_t const q16horz, double const scaleAdjust } else { - pPlayer->q16horiz = clamp(pPlayer->q16horiz + q16horz, IntToFixed(-179), IntToFixed(119)); + pPlayer->q16horiz = 0; } }