mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-30 00:10:53 +00:00
Fixe Blendings und Kickangles. Ein Wunder, dass diesen seit letztem März
vorhandenen Bug niemand gefunden hat.
This commit is contained in:
parent
66725c11e5
commit
19c63a4903
1 changed files with 20 additions and 20 deletions
|
@ -252,23 +252,23 @@ void SV_WritePlayerstateToClient (client_frame_t *from, client_frame_t *to, size
|
||||||
//
|
//
|
||||||
if (pflags & PS_VIEWOFFSET)
|
if (pflags & PS_VIEWOFFSET)
|
||||||
{
|
{
|
||||||
MSG_WriteChar (msg, (int)ps->viewoffset[0]*4);
|
MSG_WriteChar (msg, ps->viewoffset[0]*4);
|
||||||
MSG_WriteChar (msg, (int)ps->viewoffset[1]*4);
|
MSG_WriteChar (msg, ps->viewoffset[1]*4);
|
||||||
MSG_WriteChar (msg, (int)ps->viewoffset[2]*4);
|
MSG_WriteChar (msg, ps->viewoffset[2]*4);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pflags & PS_VIEWANGLES)
|
if (pflags & PS_VIEWANGLES)
|
||||||
{
|
{
|
||||||
MSG_WriteAngle16 (msg, (int)ps->viewangles[0]);
|
MSG_WriteAngle16 (msg, ps->viewangles[0]);
|
||||||
MSG_WriteAngle16 (msg, (int)ps->viewangles[1]);
|
MSG_WriteAngle16 (msg, ps->viewangles[1]);
|
||||||
MSG_WriteAngle16 (msg, (int)ps->viewangles[2]);
|
MSG_WriteAngle16 (msg, ps->viewangles[2]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pflags & PS_KICKANGLES)
|
if (pflags & PS_KICKANGLES)
|
||||||
{
|
{
|
||||||
MSG_WriteChar (msg, (int)ps->kick_angles[0]*4);
|
MSG_WriteChar (msg, ps->kick_angles[0]*4);
|
||||||
MSG_WriteChar (msg, (int)ps->kick_angles[1]*4);
|
MSG_WriteChar (msg, ps->kick_angles[1]*4);
|
||||||
MSG_WriteChar (msg, (int)ps->kick_angles[2]*4);
|
MSG_WriteChar (msg, ps->kick_angles[2]*4);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pflags & PS_WEAPONINDEX)
|
if (pflags & PS_WEAPONINDEX)
|
||||||
|
@ -279,20 +279,20 @@ void SV_WritePlayerstateToClient (client_frame_t *from, client_frame_t *to, size
|
||||||
if (pflags & PS_WEAPONFRAME)
|
if (pflags & PS_WEAPONFRAME)
|
||||||
{
|
{
|
||||||
MSG_WriteByte (msg, ps->gunframe);
|
MSG_WriteByte (msg, ps->gunframe);
|
||||||
MSG_WriteChar (msg, (int)ps->gunoffset[0]*4);
|
MSG_WriteChar (msg, ps->gunoffset[0]*4);
|
||||||
MSG_WriteChar (msg, (int)ps->gunoffset[1]*4);
|
MSG_WriteChar (msg, ps->gunoffset[1]*4);
|
||||||
MSG_WriteChar (msg, (int)ps->gunoffset[2]*4);
|
MSG_WriteChar (msg, ps->gunoffset[2]*4);
|
||||||
MSG_WriteChar (msg, (int)ps->gunangles[0]*4);
|
MSG_WriteChar (msg, ps->gunangles[0]*4);
|
||||||
MSG_WriteChar (msg, (int)ps->gunangles[1]*4);
|
MSG_WriteChar (msg, ps->gunangles[1]*4);
|
||||||
MSG_WriteChar (msg, (int)ps->gunangles[2]*4);
|
MSG_WriteChar (msg, ps->gunangles[2]*4);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pflags & PS_BLEND)
|
if (pflags & PS_BLEND)
|
||||||
{
|
{
|
||||||
MSG_WriteByte (msg, (int)ps->blend[0]*255);
|
MSG_WriteByte (msg, ps->blend[0]*255);
|
||||||
MSG_WriteByte (msg, (int)ps->blend[1]*255);
|
MSG_WriteByte (msg, ps->blend[1]*255);
|
||||||
MSG_WriteByte (msg, (int)ps->blend[2]*255);
|
MSG_WriteByte (msg, ps->blend[2]*255);
|
||||||
MSG_WriteByte (msg, (int)ps->blend[3]*255);
|
MSG_WriteByte (msg, ps->blend[3]*255);
|
||||||
}
|
}
|
||||||
if (pflags & PS_FOV)
|
if (pflags & PS_FOV)
|
||||||
MSG_WriteByte (msg, ps->fov);
|
MSG_WriteByte (msg, ps->fov);
|
||||||
|
|
Loading…
Reference in a new issue