From 4d71945eb3606e24872320f71a4612790f5b5f9b Mon Sep 17 00:00:00 2001 From: 8dcc <8dcc.git@gmail.com> Date: Mon, 24 Jul 2023 10:15:03 +0200 Subject: [PATCH] Clamp viewangles in CL_CreateMove --- src/hooks.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hooks.c b/src/hooks.c index 84df719..ca31684 100644 --- a/src/hooks.c +++ b/src/hooks.c @@ -2,6 +2,7 @@ #include "include/hooks.h" #include "include/sdk.h" #include "include/globals.h" +#include "include/util.h" /* bhop(), esp(), etc. */ #include "features/features.h" @@ -27,6 +28,7 @@ void h_CL_CreateMove(float frametime, usercmd_t* cmd, int active) { bhop(cmd); correct_movement(cmd, old_angles); + vec_clamp(cmd->viewangles); } int h_HUD_Redraw(float time, int intermission) {