Clamp viewangles in CL_CreateMove

This commit is contained in:
8dcc 2023-07-24 10:15:03 +02:00
parent 930ee5cef5
commit 4d71945eb3
1 changed files with 2 additions and 0 deletions

View File

@ -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) {