- Blood: Re-apply input scaling removed in 495c522096e0c9b31bdf6952e612bc3d03030da2 until the entire return to centre function is standardised across games.

This commit is contained in:
Mitchell Richters 2020-09-17 07:25:19 +10:00
parent 40bbb61239
commit 6a091deb67

View file

@ -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;
}
}