From 84edd9d0c4d2fb28d469bb367de262f310b9792d Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Mon, 3 Apr 2023 04:17:02 +0300 Subject: [PATCH] engine: client: use ReadVec3Angles in svc_setangle, as server uses WriteVec3Angles --- engine/client/cl_parse.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/engine/client/cl_parse.c b/engine/client/cl_parse.c index 62795022..ec7f5a55 100644 --- a/engine/client/cl_parse.c +++ b/engine/client/cl_parse.c @@ -1238,11 +1238,9 @@ CL_ParseSetAngle set the view angle to this absolute value ================ */ -void CL_ParseSetAngle( sizebuf_t *msg ) +static void CL_ParseSetAngle( sizebuf_t *msg ) { - cl.viewangles[0] = MSG_ReadBitAngle( msg, 16 ); - cl.viewangles[1] = MSG_ReadBitAngle( msg, 16 ); - cl.viewangles[2] = MSG_ReadBitAngle( msg, 16 ); + MSG_ReadVec3Angles( msg, cl.viewangles ); } /*