Fix up some netquake initial angle quirk.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5689 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2020-05-01 07:34:21 +00:00
parent 08ccf2d0a8
commit 5d1d1ef9be

View file

@ -1669,8 +1669,8 @@ void SV_SendFixAngle(client_t *client, sizebuf_t *msg, int fixtype, qboolean rol
else else
{ {
MSG_WriteByte (msg, svc_setangle); MSG_WriteByte (msg, svc_setangle);
if (host_client->ezprotocolextensions1 & EZPEXT1_SETANGLEREASON) if (client->ezprotocolextensions1 & EZPEXT1_SETANGLEREASON)
MSG_WriteByte (&host_client->netchan.message, (fixtype == FIXANGLE_DELTA)?2:0); //shitty backwards incompatible protocol extension that breaks from writebytes. MSG_WriteByte (msg, (fixtype == FIXANGLE_DELTA)?2:0); //shitty backwards incompatible protocol extension that breaks from writebytes.
for (i=0 ; i < 3 ; i++) for (i=0 ; i < 3 ; i++)
MSG_WriteAngle (msg, (i==2&&!roll)?0:ang[i]); MSG_WriteAngle (msg, (i==2&&!roll)?0:ang[i]);
} }