diff --git a/r5dev/game/shared/usercmd.cpp b/r5dev/game/shared/usercmd.cpp index 59d7b8ad..14ca240a 100644 --- a/r5dev/game/shared/usercmd.cpp +++ b/r5dev/game/shared/usercmd.cpp @@ -16,6 +16,12 @@ //----------------------------------------------------------------------------- int ReadUserCmd(bf_read* buf, CUserCmd* move, CUserCmd* from) { + // Normalize angles, bogus values will crash the game.. + from->viewangles.Normalize(); + + // More clamps coming soon... + + const int seed = v_ReadUserCmd(buf, move, from); // On the client, the frame time must be within 'usercmd_frametime_min'