diff --git a/source/core/gameinput.h b/source/core/gameinput.h index 2ef17e888..53eea0414 100644 --- a/source/core/gameinput.h +++ b/source/core/gameinput.h @@ -42,9 +42,6 @@ struct PlayerHorizon void unlockinput() { inputdisabled = false; } bool movementlocked() { return targetset() || inputdisabled; } - // Draw code helpers. - double horizsumfrac(double const interpfrac) { return (!SyncInput() ? sum() : interpolatedsum(interpfrac)).Tan() * 8.; } - // Ticrate playsim adjustment setters and processor. void addadjustment(DAngle const value) { diff --git a/source/games/duke/src/hudweapon_d.cpp b/source/games/duke/src/hudweapon_d.cpp index f05b04019..227b378e1 100644 --- a/source/games/duke/src/hudweapon_d.cpp +++ b/source/games/duke/src/hudweapon_d.cpp @@ -231,7 +231,7 @@ void displayweapon_d(int snum, double interpfrac) } plravel = getavel(snum) * (1. / 16.); - horiz16th = p->horizon.horizsumfrac(interpfrac); + horiz16th = clamp((!SyncInput() ? p->horizon.sum() : p->horizon.interpolatedsum(interpfrac)).Tan(), -2., 2.) * 8.; look_anghalf = p->angle.look_anghalf(interpfrac); looking_arc = p->angle.looking_arc(interpfrac); hard_landing *= 8.;