From f251653317dd1b23e252d015d1e3448852f6118c Mon Sep 17 00:00:00 2001 From: AL2009man <67606569+AL2009man@users.noreply.github.com> Date: Sat, 31 Jan 2026 23:38:58 -0500 Subject: [PATCH] Vertical camera angle wrapping fix Solves a issue when using Input Remapper's Mouse-based Reset to Horizon camera function (e.g. Steam Input), where the recenter couldn't stay centered. --- src/game/bondmove.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/game/bondmove.c b/src/game/bondmove.c index 548ade1b1..414e3cc1d 100644 --- a/src/game/bondmove.c +++ b/src/game/bondmove.c @@ -2415,14 +2415,6 @@ void bmoveTick(bool allowc1x, bool allowc1y, bool allowc1buttons, bool ignorec2) void bmoveUpdateVerta(void) { - while (g_Vars.currentplayer->vv_verta < -180) { - g_Vars.currentplayer->vv_verta += 360; - } - - while (g_Vars.currentplayer->vv_verta >= 180) { - g_Vars.currentplayer->vv_verta -= 360; - } - if (g_Vars.currentplayer->vv_verta > 90) { g_Vars.currentplayer->vv_verta = 90; } else if (g_Vars.currentplayer->vv_verta < -90) {