diff --git a/source/games/blood/src/view.cpp b/source/games/blood/src/view.cpp index ebe797c70..3567fa2cb 100644 --- a/source/games/blood/src/view.cpp +++ b/source/games/blood/src/view.cpp @@ -526,7 +526,7 @@ static void SetupView(PLAYER* pPlayer, DVector3& cPos, DAngle& cA, DAngle& cH, s { cPos.Z += bobHeight; } - cPos.Z -= interpolatedvalue(-10., 10., (cH + DAngle90) / DAngle180); + cPos.Z -= interpolatedvalue(0., 10., cH / DAngle90); } else { diff --git a/source/games/duke/src/hudweapon_d.cpp b/source/games/duke/src/hudweapon_d.cpp index 5837270ba..55b0047c2 100644 --- a/source/games/duke/src/hudweapon_d.cpp +++ b/source/games/duke/src/hudweapon_d.cpp @@ -232,7 +232,7 @@ void displayweapon_d(int snum, double interpfrac) plravel = getavel(snum) * (1. / 16.); auto horiz = !SyncInput() ? p->horizon.sum() : p->horizon.interpolatedsum(interpfrac); - horiz16th = interpolatedvalue(-16., 16., (horiz + DAngle90) / DAngle180); + horiz16th = interpolatedvalue(0., 16., horiz / DAngle90); look_anghalf = p->angle.look_anghalf(interpfrac); looking_arc = p->angle.looking_arc(interpfrac); hard_landing *= 8.;